Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build
node_modules
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "instantclick",
"version": "4.0.0",
"description": "InstantClick makes following links in your website instant.",
"main": "src/instantclick.js",
"directories": {
"test": "tests"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dieulot/instantclick.git"
},
"keywords": [
"pjax"
],
"author": "dieulot",
"license": "MIT",
"bugs": {
"url": "https://github.com/dieulot/instantclick/issues"
},
"homepage": "http://instantclick.io/"
}
10 changes: 10 additions & 0 deletions src/instantclick.js
Original file line number Diff line number Diff line change
Expand Up @@ -967,3 +967,13 @@ var instantclick
}

}(document, location, navigator.userAgent);

(function (root, InstantClick) {
if (typeof define === 'function' && define.amd) {
define([], InstantClick);
} else if (typeof module === 'object' && module.exports) {
module.exports = InstantClick;
} else {
root.returnExports = InstantClick;
}
}(this, InstantClick));