Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1403)

Unified Diff: Source/devtools/front_end/UIUtils.js

Issue 200053006: DevTools: Fix [bound] function receivers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/UIUtils.js
diff --git a/Source/devtools/front_end/UIUtils.js b/Source/devtools/front_end/UIUtils.js
index ee8bb7e48c675e3b42a55829c8f831d562c4e41b..4d4fa9a23e9f4d56ecd275e07467b014c2b5839e 100644
--- a/Source/devtools/front_end/UIUtils.js
+++ b/Source/devtools/front_end/UIUtils.js
@@ -820,15 +820,12 @@ WebInspector.invokeOnceAfterBatchUpdate = function(object, method)
;(function() {
-/**
- * @this {Window}
- */
function windowLoaded()
{
window.addEventListener("focus", WebInspector._windowFocused, false);
window.addEventListener("blur", WebInspector._windowBlurred, false);
- document.addEventListener("focus", WebInspector._focusChanged.bind(this), true);
- document.addEventListener("blur", WebInspector._documentBlurred.bind(this), true);
+ document.addEventListener("focus", WebInspector._focusChanged, true);
+ document.addEventListener("blur", WebInspector._documentBlurred, true);
window.removeEventListener("DOMContentLoaded", windowLoaded, false);
}

Powered by Google App Engine
This is Rietveld 408576698