Skip to content

Commit

Permalink
pollute global space with __dgApi__
Browse files Browse the repository at this point in the history
  • Loading branch information
Trufi committed Oct 6, 2015
1 parent 5c07bac commit 22cd950
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions 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]);
});
Expand Down

0 comments on commit 22cd950

Please sign in to comment.