Browse files

Small bugfix for `iOS/ActionSheet`.

  • Loading branch information...
1 parent 59b2ca1 commit 18580a8f7cb48017387a5daa21cb114b42d04b06 @mgcrea mgcrea committed Apr 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 iOS/ActionSheet/ActionSheet.js
View
4 iOS/ActionSheet/ActionSheet.js
@@ -22,8 +22,8 @@ ActionSheet.prototype.create = function(title, items, callback, options) {
title : title || '',
items : items || ['Cancel'],
style : options.style || 'default',
- destructiveButtonIndex : options.destructiveButtonIndex || undefined,
- cancelButtonIndex : options.cancelButtonIndex || undefined
+ destructiveButtonIndex : options.hasOwnProperty('destructiveButtonIndex') ? options.destructiveButtonIndex : undefined,
+ cancelButtonIndex : options.hasOwnProperty('cancelButtonIndex') ? options.cancelButtonIndex : undefined
};
var _callback = function(result) {

0 comments on commit 18580a8

Please sign in to comment.