Header and platform fix

This commit is contained in:
Max Lynch
2013-11-19 19:05:47 -06:00
parent 14028987e4
commit 55084bfc2a
3 changed files with 10 additions and 2 deletions

View File

@ -24219,7 +24219,7 @@ angular.module('ionic.service.platform', [])
var isReady = function() {
if(platform == 'cordova') {
return window.device;
return window.device || window.Cordova;
}
return true;
};
@ -25537,6 +25537,10 @@ angular.module('ionic.ui.navRouter', [])
var oldTitle = $scope.currentTitle;
$scope.oldTitle = oldTitle;
if(typeof data.title !== 'undefined') {
$scope.currentTitle = data.title;
}
if(data.animate !== false && typeof data.title !== 'undefined') {
animate($scope, $element, oldTitle, data, function() {
hb.align();

View File

@ -260,6 +260,10 @@ angular.module('ionic.ui.navRouter', [])
var oldTitle = $scope.currentTitle;
$scope.oldTitle = oldTitle;
if(typeof data.title !== 'undefined') {
$scope.currentTitle = data.title;
}
if(data.animate !== false && typeof data.title !== 'undefined') {
animate($scope, $element, oldTitle, data, function() {
hb.align();

View File

@ -20,7 +20,7 @@ angular.module('ionic.service.platform', [])
var isReady = function() {
if(platform == 'cordova') {
return window.device;
return window.device || window.Cordova;
}
return true;
};