mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
amend($ionicActionSheet): remove unused line of code
This commit is contained in:
5
js/angular/service/actionSheet.js
vendored
5
js/angular/service/actionSheet.js
vendored
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user