From 22cd9506da3ebafc28d7678fa811a99578c2fa68 Mon Sep 17 00:00:00 2001 From: Mstislav Zhivodkov Date: Tue, 6 Oct 2015 18:42:10 +0600 Subject: [PATCH] pollute global space with __dgApi__ --- src/DGCore/src/DGthen.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/DGCore/src/DGthen.js b/src/DGCore/src/DGthen.js index b457d6a36..be4788abd 100644 --- a/src/DGCore/src/DGthen.js +++ b/src/DGCore/src/DGthen.js @@ -1,13 +1,6 @@ var handlers = window.__dgApi__.callbacks || [], chain = Promise.resolve(); -// dont pollute global space! -try { - delete window.__dgApi__; -} catch(e) { - window.__dgApi__ = undefined; // ie8 cant delete from window object -} - handlers.forEach(function (handlers) { chain = chain.then(handlers[0], handlers[1]); });