mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
trim after its time to go
This commit is contained in:
4
dist/js/ionic-angular.js
vendored
4
dist/js/ionic-angular.js
vendored
@@ -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') {
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user