Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Commit

Permalink
Work around odd bug stopping the extension from working
Browse files Browse the repository at this point in the history
  • Loading branch information
Triangle717 committed Feb 12, 2014
1 parent a39c70d commit 2d143ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*.tmp
*.bak
*.js
*.html
Releases/
img/*
!img/*.png
Expand Down
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ define(function (require, exports, module) {
function _showSkellyDialog() {
/* Display the HTML Skeleton box */

var skellyDialog = Dialogs.showModalDialogUsingTemplate(skellyDialogHtml);
var $dlg = skellyDialog.getElement();
var $doneButton = $dlg.find(".dialog-button[data-button-id='ok']");
var skellyDialog = Dialogs.showModalDialogUsingTemplate(skellyDialogHtml),
$doneButton = skellyDialog.getElement().find('.dialog-button[data-button-id="ok"]');

// Bind the close button
$doneButton.on("click", skellyDialog.close.bind(skellyDialog));
// FIXME Why does enabling this stop the extension from working?
//$doneButton.on("click", skellyDialog.close.bind(skellyDialog));

// Upon closing the dialog, run function to gather and apply choices
$doneButton.on("click", _getOptions);
Expand Down

0 comments on commit 2d143ab

Please sign in to comment.