Files
ionic-framework/js/ionic.js
Adam Bradley 5605317936 refactor(ionicNamespace): create window.ionic
Build processes may also be using the window.ionic object, but it’ll
have to create its own because ionic.js may not have run yet. Use the
existing window.ionic obj if it exists, otherwise create it.
2014-09-04 23:55:12 -05:00

7 lines
209 B
JavaScript

// Create global ionic obj and its namespaces
// build processes may have already created an ionic obj
window.ionic = window.ionic || {};
window.ionic.views = {};
window.ionic.version = '<%= pkg.version %>';