chore(): cleanup unused variables

This commit is contained in:
Adam Bradley
2014-11-10 21:06:33 -06:00
parent 348282be5a
commit 246c193f9a
5 changed files with 16 additions and 21 deletions

View File

@@ -77,39 +77,38 @@ IonicModule
.controller('$ionicList', [
'$scope',
'$attrs',
'$parse',
'$ionicListDelegate',
function($scope, $attrs, $parse, $ionicListDelegate) {
function($scope, $attrs, $ionicListDelegate) {
var self = this;
var isSwipeable = true;
var isReorderShown = false;
var isDeleteShown = false;
var deregisterInstance = $ionicListDelegate._registerInstance(this, $attrs.delegateHandle);
var deregisterInstance = $ionicListDelegate._registerInstance(self, $attrs.delegateHandle);
$scope.$on('$destroy', deregisterInstance);
this.showReorder = function(show) {
self.showReorder = function(show) {
if (arguments.length) {
isReorderShown = !!show;
}
return isReorderShown;
};
this.showDelete = function(show) {
self.showDelete = function(show) {
if (arguments.length) {
isDeleteShown = !!show;
}
return isDeleteShown;
};
this.canSwipeItems = function(can) {
self.canSwipeItems = function(can) {
if (arguments.length) {
isSwipeable = !!can;
}
return isSwipeable;
};
this.closeOptionButtons = function() {
this.listView && this.listView.clearDragEffects();
self.closeOptionButtons = function() {
self.listView && self.listView.clearDragEffects();
};
}]);