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:
Max Lynch
2013-09-24 17:22:36 -05:00
parent 5aabbfbd0c
commit 37d708b05e
19 changed files with 75 additions and 74 deletions

View File

@ -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);