Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
feat: log a warning if we suspect duplicate Zone install
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar committed May 1, 2015
1 parent 490e6dd commit 657f6fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,11 @@ Zone.init = function init () {
Zone.patch();
};

if (window.Zone) {
console.warn('Zone already exported on window the object!');
}

Zone.init();

exports.Zone = Zone;

}((typeof module !== 'undefined' && module && module.exports) ?
Expand Down

0 comments on commit 657f6fe

Please sign in to comment.