Skip to content

Commit

Permalink
Merge pull request #56 from tseabra-rocket/master
Browse files Browse the repository at this point in the history
init npm
  • Loading branch information
samdark committed Nov 24, 2015
2 parents 3422e54 + 59330d8 commit 426c179
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.the-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
if(localOptions.closeOnEsc) {
$(document).bind('keyup.'+pluginNamespace, function(e){
if(e.keyCode === 27) {
$.modal().close();
$.modal().close(localOptions);
}
});
}
Expand All @@ -180,7 +180,7 @@
e.stopPropagation();
});
$('.' + localOptions.overlayClass).on('click.' + pluginNamespace, function(e){
$.modal().close();
$.modal().close(localOptions);
});
}

Expand Down
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "the-modal",
"version": "1.0.0",
"description": "The Modal =========",
"main": "jquery.the-modal.js",
"repository": {
"type": "git",
"url": "git+https://github.com/samdark/the-modal.git"
},
"author": "samdark",
"license": "ISC",
"bugs": {
"url": "https://github.com/samdark/the-modal/issues"
},
"homepage": "https://github.com/samdark/the-modal#readme"
}

0 comments on commit 426c179

Please sign in to comment.