reorder HeaderBar after NavBar in grunt

This commit is contained in:
Adam Bradley
2013-09-27 10:42:19 -05:00
parent 66bb676aa3
commit 0823b58d8e
7 changed files with 109 additions and 105 deletions

View File

@ -1,28 +1,30 @@
(function(ionic) {
ionic.views.HeaderBar = function(opts) {
this.el = opts.el;
ionic.views.HeaderBar = function(opts) {
this.el = opts.el;
this._titleEl = this.el.querySelector('.title');
};
this._titleEl = this.el.querySelector('.title');
};
ionic.views.NavBar.prototype = {
resizeTitle: function() {
var e;
var j;
var children = this.el.children;
ionic.views.NavBar.prototype = {
resizeTitle: function() {
var
e,
j,
i,
title,
titleWidth,
children = this.el.children;
var title;
var titleWidth;
for(var i = 0; j = children.length; i < j; i++) {
e = children[i];
if(/h\d/.test(e.nodeName.toLowerCase())) {
title = e;
for(i = 0, j = children.length; i < j; i++) {
e = children[i];
if(/h\d/.test(e.nodeName.toLowerCase())) {
title = e;
}
}
}
titleWidth = title.offsetWidth;
}
};
})(window.ionic);
titleWidth = title.offsetWidth;
}
};
})(ionic);