Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
warn on duplicate platform.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Feb 12, 2014
1 parent e263883 commit 540dc77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@

// deliver queued delcarations
scope.deliverDeclarations = function() {
scope.deliverDeclarations = null;
scope.deliverDeclarations = function() {
throw 'Attempt to load platform.js twice';
};
return elementDeclarations;
}

Expand Down

0 comments on commit 540dc77

Please sign in to comment.