Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amd + bower definition (fixes #170 #187) #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
29 changes: 29 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "jquery-address",
"homepage": "http://www.asual.com/jquery/address/",
"repository": {
"type": "git",
"url": "git://github.com/asual/jquery-address.git"
},
"description": "jQuery Address - Deep linking for the masses",
"main": "src/jquery.address.js",
"keywords": [
"address",
"linking"
],
"license": "MIT",
"ignore": [
"dist",
"lib",
"samples",
"test",
".jshintrc",
".gitignore",
"build.*",
"**/*.txt"
],
"dependencies": {
"jquery": ">= 1.6.4"
},
"version": "1.6.0"
}
38 changes: 19 additions & 19 deletions samples/accordion/jquery.address-1.6.min.js

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions samples/api/jquery.address-1.6.min.js

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions samples/events/jquery.address-1.6.min.js

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions samples/express/public/jquery.address-1.6.min.js

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions samples/form/jquery.address-1.6.min.js

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions samples/state/jquery.address-1.6.min.js

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions samples/subtabs/jquery.address-1.6.min.js

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions samples/tabs/jquery.address-1.6.min.js

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions src/jquery.address.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/*! jQuery Address v${version} | (c) 2009, 2013 Rostislav Hristov | jquery.org/license */
(function ($) {
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery"], factory );
} else {
factory( jQuery );
}
}(function( $ ) {

$.address = (function () {

Expand Down Expand Up @@ -613,5 +619,5 @@
});
return this;
};
})(jQuery);

}));
2 changes: 1 addition & 1 deletion test/frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>jQuery Address Test Suite</title>
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="../src/jquery.address.js"></script>
<script type="text/javascript">
parent.iframe($.address.parameter('p'));
Expand Down
38 changes: 19 additions & 19 deletions test/jquery.address-1.6.min.js

Large diffs are not rendered by default.