IE 8 expects the left side of an instanceof expression to be a function. Since stickTo
could be a string. Protect against that case and also create a flag for later checks.
Thanks @lambacck for pointing that out, I kept my approach for short-hand statements and also found an IE9 bug. IE9 don't recognize HTMLDocument but Document instead.
IE 8 expects the left side of an instanceof expression to be a function. Since stickTo could be a string. Protect against that case and also create a flag for later checks.