mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
Tests organization and cleanup
Moved hacking tests to test folder, got rid of ionic=window.ionic for wrapper functions in JS files.
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
(function(ionic) {
|
||||
|
||||
ionic.ui = ionic.ui || {};
|
||||
ionic.views = ionic.views || {};
|
||||
|
||||
ionic.ui.SideMenu = function(opts) {
|
||||
ionic.views.SideMenu = function(opts) {
|
||||
this.el = opts.el;
|
||||
this.width = opts.width;
|
||||
this.isEnabled = opts.isEnabled || true;
|
||||
};
|
||||
|
||||
ionic.ui.SideMenu.prototype = {
|
||||
ionic.views.SideMenu.prototype = {
|
||||
getFullWidth: function() {
|
||||
return this.width;
|
||||
},
|
||||
@ -22,4 +22,4 @@ ionic.ui.SideMenu.prototype = {
|
||||
this.el.style.zIndex = -1;
|
||||
}
|
||||
};
|
||||
})(ionic = window.ionic || {});
|
||||
})(window.ionic);
|
||||
|
||||
Reference in New Issue
Block a user