mirror of
https://github.com/flarum/framework.git
synced 2024-11-27 02:53:37 +08:00
Fix override util super context
This commit is contained in:
parent
2288be12ff
commit
f31973981c
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user