Fix override util super context

This commit is contained in:
Toby Zerner 2015-05-04 10:30:29 +09:30
parent fbcada96a9
commit 83b58a3ab8

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));
}
}