refactor(): remove deprecated $parse dependency from controllers

This commit is contained in:
Andy Joslin
2014-03-25 07:48:26 -06:00
parent 3b0af6c339
commit d2bdf4302b
5 changed files with 9 additions and 7 deletions

View File

@@ -187,8 +187,7 @@ angular.module('ionic.ui.scroll')
'$rootScope',
'$document',
'$ionicScrollDelegate',
'$parse', //DEPRECATED
function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $location, $rootScope, $document, $ionicScrollDelegate, $parse) {
function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $location, $rootScope, $document, $ionicScrollDelegate) {
var self = this;

View File

@@ -97,7 +97,7 @@ function tapScrollToTopDirective() {
function barDirective(isHeader) {
return [function($parse) {
return [function() {
return {
restrict: 'E',
compile: function($element, $attr) {

View File

@@ -56,11 +56,10 @@ angular.module('ionic.ui.content', ['ionic.ui.scroll'])
* @param {expression=} on-scroll-complete Expression to evaluate when a scroll action completes.
*/
.directive('ionContent', [
'$parse',
'$timeout',
'$controller',
'$ionicBind',
function($parse, $timeout, $controller, $ionicBind) {
function($timeout, $controller, $ionicBind) {
return {
restrict: 'E',
require: '^?ionNavView',

View File

@@ -21,7 +21,11 @@ angular.module('ionic.ui.scroll', [])
* @param {boolean=} scrollbar-x Whether to show the horizontal scrollbar. Default false.
* @param {boolean=} scrollbar-x Whether to show the vertical scrollbar. Default true.
*/
.directive('ionScroll', ['$parse', '$timeout', '$controller', '$ionicBind', function($parse, $timeout, $controller, $ionicBind) {
.directive('ionScroll', [
'$timeout',
'$controller',
'$ionicBind',
function($timeout, $controller, $ionicBind) {
return {
restrict: 'E',
scope: true,

View File

@@ -154,7 +154,7 @@ function($timeout, $compile, $ionicSlideBoxDelegate) {
onSlideChanged: '&',
activeSlide: '=?'
},
controller: ['$scope', '$element', '$attrs', '$parse', function($scope, $element, $attrs) {
controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) {
var _this = this;
var continuous = $scope.$eval($scope.doesContinue) === true;