From f31973981c9577c3b31680cc59be012b30231aae Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 4 May 2015 10:30:29 +0930 Subject: [PATCH] Fix override util super context --- js/lib/extension-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lib/extension-utils.js b/js/lib/extension-utils.js index 55712bace..373d35d71 100644 --- a/js/lib/extension-utils.js +++ b/js/lib/extension-utils.js @@ -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)); } }