Skip to content

Commit 201fb61

Browse files
committed
Add package.json
1 parent 316f6e5 commit 201fb61

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

jquery.blockUI.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,14 @@
611611

612612

613613
/*global define:true */
614-
if (typeof define === 'function' && define.amd && define.amd.jQuery) {
614+
if (typeof define === 'function' && define.amd) {
615+
// AMD. Register as an anonymous module.
615616
define(['jquery'], setup);
617+
} else if (typeof exports === 'object') {
618+
// Node/CommonJS
619+
setup(require('jquery'));
616620
} else {
621+
// Browser globals
617622
setup(jQuery);
618623
}
619624

package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "block-ui",
3+
"description": "Simulate synchronous ajax by blocking - not locking - the UI. This plugin lets you block user interaction with the page or with a specific element on the page. Also great at displaying modal dialogs.",
4+
"version": "2.70.0",
5+
"author": "M. Alsup (http://jquery.malsup.com)",
6+
"bugs": {
7+
"url": "https://github.com/malsup/blockui/issues"
8+
},
9+
"dependencies": {
10+
"jquery": ">=1.7.x"
11+
},
12+
"homepage": "http://jquery.malsup.com/block/",
13+
"keywords": [
14+
"block",
15+
"dialog",
16+
"ecosystem:jquery",
17+
"jquery-plugin",
18+
"modal",
19+
"overlay"
20+
],
21+
"license": [
22+
{
23+
"type": "MIT",
24+
"url": "http://malsup.github.com/mit-license.txt"
25+
},
26+
{
27+
"type": "GPL",
28+
"url": "http://malsup.github.com/gpl-license-v2.txt"
29+
}
30+
],
31+
"main": "jquery.blockUI.js",
32+
"repository": {
33+
"type": "git",
34+
"url": "https://github.com/malsup/blockui.git"
35+
},
36+
"scripts": {
37+
"test": "echo \"Error: no test specified\" && exit 1"
38+
}
39+
}

0 commit comments

Comments
 (0)