Skip to content

Commit

Permalink
amend($ionicActionSheet): remove unused line of code
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Jun 11, 2014
1 parent 087e55f commit e2ec0bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/angular/service/actionSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit e2ec0bf

Please sign in to comment.