Fix override util super context

This commit is contained in:
Toby Zerner 2015-05-04 10:30:29 +09:30
parent 2288be12ff
commit f31973981c

View File

@ -11,6 +11,6 @@ export function override(object, func, override) {
var parent = object[func];
object[func] = function() {
var args = [].slice.apply(arguments);
return override.apply(this, [parent].concat(args));
return override.apply(this, [parent.bind(this)].concat(args));
}
}