Skip to content
This repository
Browse code

Merge pull request #508 from mgcrea/ios-actionsheet

Small bugfix for `iOS/ActionSheet`.
  • Loading branch information...
commit 353952a89ec7339d42721f91844d4726ef6add30 2 parents 661b325 + 18580a8
@RandyMcMillan authored April 27, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  iOS/ActionSheet/ActionSheet.js
4  iOS/ActionSheet/ActionSheet.js
@@ -22,8 +22,8 @@ ActionSheet.prototype.create = function(title, items, callback, options) {
22 22
 		title : title || '',
23 23
 		items : items || ['Cancel'],
24 24
 		style : options.style || 'default',
25  
-		destructiveButtonIndex : options.destructiveButtonIndex || undefined,
26  
-		cancelButtonIndex : options.cancelButtonIndex || undefined
  25
+		destructiveButtonIndex : options.hasOwnProperty('destructiveButtonIndex') ? options.destructiveButtonIndex : undefined,
  26
+		cancelButtonIndex : options.hasOwnProperty('cancelButtonIndex') ? options.cancelButtonIndex : undefined
27 27
 	};
28 28
 
29 29
 	var _callback = function(result) {

0 notes on commit 353952a

Please sign in to comment.
Something went wrong with that request. Please try again.