What browsers do you support?
I couldn't find any mention in the readme.
I'm getting this error in IE8.
Message: JScript object expected
Line: 131
Char: 13
Code: 0
URI: /js/postpone.js
@cato,
Thanks for posting this. It looks like this error is due the line that converts the list of found postpone elements to an array. After looking into this for a while I came across the issue at the heart of this error. Essentially IE8 does not support calling Array.prototype.slice on live NodeList objects, as most other browsers do. This behavior does not strictly go against spec and is allowable due due a technicality:
Whether the slice function can be applied successfully to a host object is implementation-dependent.
The way to get around this is to define a custom slice method that will catch this kind error and manually convert the NodeList into an array. I will get on this quickly and push something so you can test it.
By the way, postpone has been tested in a very large production environment that supports all major browsers and Internet Explorer all the way back to IE9. Hopefully we can bring support to IE8.
-Lucas
@cato,
I just created a branch that adds full IE8 support: https://github.com/lsvx/postpone/tree/issue2. Can you please check it out and test it to see if it works as expected? You can check it out locally by running git pull origin issue2 && git checkout issue2. To be honest, I am not sure I want to merge this into master even if it does work correctly.
Please let me know what you find!
-Lucas
@cato, I merged in https://github.com/lsvx/postpone/pull/3 which added support for IE8. Closing this issue now.
Thanks, Lucas