mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(): move from jshint to eslint
This commit is contained in:
5
js/angular/controller/navViewController.js
vendored
5
js/angular/controller/navViewController.js
vendored
@@ -26,7 +26,6 @@ function($scope, $element, $attrs, $compile, $controller, $ionicNavBarDelegate,
|
||||
var activeEleId;
|
||||
var navViewAttr = $ionicViewSwitcher.navViewAttr;
|
||||
var disableRenderStartViewId, disableAnimation;
|
||||
var transitionDuration, transitionTiming;
|
||||
|
||||
self.scope = $scope;
|
||||
self.element = $element;
|
||||
@@ -39,7 +38,7 @@ function($scope, $element, $attrs, $compile, $controller, $ionicNavBarDelegate,
|
||||
// off the DOM so child directives can find it.
|
||||
var parent = $element.parent().inheritedData('$uiView');
|
||||
var parentViewName = ((parent && parent.state) ? parent.state.name : '');
|
||||
if (navViewName.indexOf('@') < 0) navViewName = navViewName + '@' + parentViewName;
|
||||
if (navViewName.indexOf('@') < 0) navViewName = navViewName + '@' + parentViewName;
|
||||
|
||||
var viewData = { name: navViewName, state: null };
|
||||
$element.data('$uiView', viewData);
|
||||
@@ -478,7 +477,7 @@ function($scope, $element, $attrs, $compile, $controller, $ionicNavBarDelegate,
|
||||
|
||||
function getAssociatedNavBarCtrl() {
|
||||
if (navBarDelegate) {
|
||||
for (var x=0; x < $ionicNavBarDelegate._instances.length; x++) {
|
||||
for (var x = 0; x < $ionicNavBarDelegate._instances.length; x++) {
|
||||
if ($ionicNavBarDelegate._instances[x].$$delegateHandle == navBarDelegate) {
|
||||
return $ionicNavBarDelegate._instances[x];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user