holyshared/Helper — Issue #2: An error occurs at the time of DeleGate of ie8.
Author: holyshared
Created: 2012-01-24 03:12:37+00:00
State: open

before
delegate: function(key, args){
var method = this.getMethod(key),
target = this.getTarget();
if (!Type.isFunction(target[method])) {
throw new Error('Method ' + method + ' doesn\'t exist or it is an invalid method.');
}
target[method].apply(target, args);
}

after
delegate: function(key, args){
var method = this.getMethod(key),
target = this.getTarget();
if (!Type.isFunction(target[method])) {
throw new Error('Method ' + method + ' doesn\'t exist or it is an invalid method.');
}
target[method](args);
}