Skip to content

Commit e2ec0bf

Browse files
committed
amend($ionicActionSheet): remove unused line of code
1 parent 087e55f commit e2ec0bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: js/angular/service/actionSheet.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ function($rootScope, $document, $compile, $animate, $timeout, $ionicTemplateLoad
7373
*
7474
* - `[Object]` `buttons` Which buttons to show. Each button is an object with a `text` field.
7575
* - `{string}` `titleText` The title to show on the action sheet.
76-
* - `{string=}` `cancelText` The text for a 'cancel' button on the action sheet.
77-
* - `{string=}` `destructiveText` The text for a 'danger' on the action sheet.
76+
* - `{string=}` `cancelText` the text for a 'cancel' button on the action sheet.
77+
* - `{string=}` `destructivetext` The text for a 'danger' on the action sheet.
7878
* - `{function=}` `cancel` Called if the cancel button is pressed, the backdrop is tapped or
7979
* the hardware back button is pressed.
8080
* - `{function=}` `buttonClicked` Called when one of the non-destructive buttons is clicked,
@@ -119,7 +119,6 @@ function($rootScope, $document, $compile, $animate, $timeout, $ionicTemplateLoad
119119
$document[0].body.classList.remove('action-sheet-open');
120120
scope.$deregisterBackButton();
121121
stateChangeListenDone();
122-
scope.cancel.$scope = null; //see last line
123122

124123
$animate.removeClass(element, 'active', function() {
125124
scope.$destroy();

0 commit comments

Comments
 (0)