From 9d3169144a3f23b9d0707028143a5897b47963bc Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 9 Feb 2018 15:55:59 +0400 Subject: [PATCH] fix apf not working in strict mode --- plugins/c9.ide.ui/lib_apf.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/c9.ide.ui/lib_apf.js b/plugins/c9.ide.ui/lib_apf.js index 710c9330..a21f623d 100644 --- a/plugins/c9.ide.ui/lib_apf.js +++ b/plugins/c9.ide.ui/lib_apf.js @@ -96,7 +96,7 @@ define(["require", "module", "exports", "./lib/menu/menu", "./lib/crypto", /** * @event load Fires after the application is loaded. */ - apf = { +var apf = window.apf = { getPlugin: function(name) { return apf.nameserver.get("all", name); }, @@ -705,7 +705,6 @@ apf.Class.prototype = new (function(){ for (i = 0, l = this.$bufferEvents.length; i < l; i++) this.addEventListener.apply(this, this.$bufferEvents[i]); - delete realAddEventListener; delete this.$initStack; delete this.$bufferEvents;