mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
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.
7 lines
209 B
JavaScript
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 %>';
|