From e2ec0bfffee256d30e4b7ea0737e9081491d6ed4 Mon Sep 17 00:00:00 2001 From: Andrew Joslin Date: Wed, 11 Jun 2014 11:33:56 -0600 Subject: [PATCH] amend($ionicActionSheet): remove unused line of code --- js/angular/service/actionSheet.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/angular/service/actionSheet.js b/js/angular/service/actionSheet.js index 9fa3414967..1332607986 100644 --- a/js/angular/service/actionSheet.js +++ b/js/angular/service/actionSheet.js @@ -73,8 +73,8 @@ function($rootScope, $document, $compile, $animate, $timeout, $ionicTemplateLoad * * - `[Object]` `buttons` Which buttons to show. Each button is an object with a `text` field. * - `{string}` `titleText` The title to show on the action sheet. - * - `{string=}` `cancelText` The text for a 'cancel' button on the action sheet. - * - `{string=}` `destructiveText` The text for a 'danger' on the action sheet. + * - `{string=}` `cancelText` the text for a 'cancel' button on the action sheet. + * - `{string=}` `destructivetext` The text for a 'danger' on the action sheet. * - `{function=}` `cancel` Called if the cancel button is pressed, the backdrop is tapped or * the hardware back button is pressed. * - `{function=}` `buttonClicked` Called when one of the non-destructive buttons is clicked, @@ -119,7 +119,6 @@ function($rootScope, $document, $compile, $animate, $timeout, $ionicTemplateLoad $document[0].body.classList.remove('action-sheet-open'); scope.$deregisterBackButton(); stateChangeListenDone(); - scope.cancel.$scope = null; //see last line $animate.removeClass(element, 'active', function() { scope.$destroy();