From 56fbf3b37545038ed9df0dab94d6c6600762f09c Mon Sep 17 00:00:00 2001 From: Flaky Date: Fri, 11 Jul 2014 16:33:39 +0200 Subject: [PATCH] docs(actionSheet): update example to have `cancel` method, which it needs Closes #1770 Add cancel function to handle cancel clicks in example. Otherwise throws error when used in own code. --- js/angular/service/actionSheet.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/angular/service/actionSheet.js b/js/angular/service/actionSheet.js index f97e53bac7..bcf9d644a4 100644 --- a/js/angular/service/actionSheet.js +++ b/js/angular/service/actionSheet.js @@ -30,6 +30,9 @@ * destructiveText: 'Delete', * titleText: 'Modify your album', * cancelText: 'Cancel', + * cancel: function() { + // add cancel code.. + }, * buttonClicked: function(index) { * return true; * }