amend($ionicActionSheet): remove unused line of code

This commit is contained in:
Andrew Joslin
2014-06-11 11:33:56 -06:00
parent 087e55f320
commit e2ec0bfffe

View File

@@ -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();