The following code does not work as intended on IE8
```
function createDelegate(object, ev, method) {
var fn = function () {
var args = [];
args.push(ev);
if (arguments) {
for (var a in arguments) {
args.push(arguments[a]);
}
}
return method.apply(object, args);
};
return fn;
}
```
Replace with
```
function createDelegate(object, ev, method) {
var fn = function () {
var args = [];
args.push(ev);
if (arguments) {
for (var i = 0; i < arguments.length; i++) {
args.push(arguments[i]);
}
}
return method.apply(object, args);
};
return fn;
}
```
```
function createDelegate(object, ev, method) {
var fn = function () {
var args = [];
args.push(ev);
if (arguments) {
for (var a in arguments) {
args.push(arguments[a]);
}
}
return method.apply(object, args);
};
return fn;
}
```
Replace with
```
function createDelegate(object, ev, method) {
var fn = function () {
var args = [];
args.push(ev);
if (arguments) {
for (var i = 0; i < arguments.length; i++) {
args.push(arguments[i]);
}
}
return method.apply(object, args);
};
return fn;
}
```