mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:52:25 +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…
x
Reference in New Issue
Block a user