developers world

tecnical questioncss

javascript

ie9

Some problems with IE

0Hancock posted on 2016/01/31 23:02:44

setTimeout function have got only 2 parameters, to use 3 parameters please include the following code snippet
if (navigator.appVersion.indexOf('MSIE 9') > 0) {
    window.orgTimeout = window.setTimeout;
    window.setTimeout = function (callback, delay, arg) {
        return window.orgTimeout((function (param) {
            return function () {
                callback(param);
            };
        })(arg), delay);
    }
}
css
javascript
ie9

Comments

There is no comment
Contact: