Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Commit

Permalink
Fix duplicate of callbackClose function call - whoops. Closes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Feb 23, 2012
1 parent 9aac3af commit 1b0ea78
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/jquery.mobile.simpledialog2.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(function($, undefined ) {
$.widget( "mobile.simpledialog2", $.mobile.widget, {
options: {
version: '1.0.1-2012021900', // jQueryMobile-YrMoDaySerial
version: '1.0.1-2012022300', // jQueryMobile-YrMoDaySerial
mode: 'blank', // or 'button'
themeDialog: 'b',
themeInput: 'e',
Expand Down Expand Up @@ -313,10 +313,6 @@

$.mobile.activePage.find('.ui-btn-active').removeClass('ui-btn-active');

if ( $.isFunction(self.options.callbackClose) ) {
self.options.callbackClose.apply(self, self.options.callbackCloseArgs);
}

if ( self.isDialog === true || self.options.animate === true ) {
setTimeout("$.mobile.sdCurrentDialog.destroy();", 1000);
} else {
Expand Down

1 comment on commit 1b0ea78

@bmcharek
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jonathan!

Please sign in to comment.