trim after its time to go

This commit is contained in:
Adam Bradley
2014-01-10 09:03:22 -06:00
parent ead7224a1e
commit 915e7a9376
2 changed files with 4 additions and 4 deletions

View File

@@ -2626,7 +2626,7 @@ angular.module('ionic.ui.viewState', ['ionic.service.view', 'ionic.service.gestu
function update(doAnimation) {
var locals = $state.$current && $state.$current.locals[name],
template = (locals && locals.$template ? locals.$template.trim() : null);
template = (locals && locals.$template ? locals.$template : null);
if (locals === viewLocals) return; // nothing to do here, go about your business
@@ -2639,7 +2639,7 @@ angular.module('ionic.ui.viewState', ['ionic.service.view', 'ionic.service.gestu
};
if (template) {
currentElement = angular.element(template);
currentElement = angular.element(template.trim());
var registerData = {};
if(currentElement[0].tagName !== 'TABS') {

View File

@@ -278,7 +278,7 @@ angular.module('ionic.ui.viewState', ['ionic.service.view', 'ionic.service.gestu
function update(doAnimation) {
var locals = $state.$current && $state.$current.locals[name],
template = (locals && locals.$template ? locals.$template.trim() : null);
template = (locals && locals.$template ? locals.$template : null);
if (locals === viewLocals) return; // nothing to do here, go about your business
@@ -291,7 +291,7 @@ angular.module('ionic.ui.viewState', ['ionic.service.view', 'ionic.service.gestu
};
if (template) {
currentElement = angular.element(template);
currentElement = angular.element(template.trim());
var registerData = {};
if(currentElement[0].tagName !== 'TABS') {