Skip to content

Commit e63e93b

Browse files
committed
Packagin for NPM based on brutaldesign#288, fixing main: bug in package.json
1 parent c622743 commit e63e93b

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "swipebox",
3+
"version": "1.4.6",
4+
"description": "A touchable jQuery lightbox",
5+
"main": "src/js/jquery.swipebox.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/revd/swipebox-1.git"
9+
},
10+
"keywords": [
11+
"Lightbox",
12+
"jQuery"
13+
],
14+
"author": "Constantin Saguin",
15+
"license": "MIT",
16+
"bugs": {
17+
"url": "https://github.com/brutaldesign/swipebox/issues"
18+
},
19+
"homepage": "https://github.com/brutaldesign/swipebox#readme"
20+
}

src/js/jquery.swipebox.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
$.swipebox.close = function () {
6060
ui.closeSlide();
6161
};
62+
63+
$.swipebox.destroy = function () {
64+
$( document ).off( 'click.swipebox' );
65+
};
6266

6367
$.swipebox.extend = function () {
6468
return ui;
@@ -76,7 +80,7 @@
7680

7781
} else {
7882

79-
$( document ).on( 'click', selector, function( event ) {
83+
$( document ).on( 'click.swipebox', selector, function( event ) {
8084

8185
// console.log( isTouch );
8286

0 commit comments

Comments
 (0)