mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Fix override util super context
This commit is contained in:
parent
fbcada96a9
commit
83b58a3ab8
|
@ -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