Skip to content

Commit 1203f25

Browse files
committed
fix AMD loading
1 parent 8f75a87 commit 1203f25

7 files changed

Lines changed: 16 additions & 16 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Or execute special method in JavaScript:
186186

187187
history.redirect(/* type = */ '/', /* basepath = */ '/pathtosite/');
188188

189-
Demo Site: http://history.spb-piksel.ru/
189+
Demo Site: http://history.spb-piksel.ru/ or http://devote.github.io/demos/history/
190190

191191
Follow me on Twitter: https://twitter.com/DimaPakhtinov
192192

@@ -377,7 +377,7 @@ $(window).on('popstate', function(e) {
377377

378378
history.redirect(/* type = */ '/', /* basepath = */ '/pathtosite/');
379379

380-
Демо-сайт: http://history.spb-piksel.ru/
380+
Демо-сайт: http://history.spb-piksel.ru/ или http://devote.github.io/demos/history/
381381

382382
Я в Twitter: https://twitter.com/DimaPakhtinov
383383

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "history",
33
"repo": "devote/HTML5-History-API",
44
"description": "HTML5 History API expansion for browsers not supporting pushState, replaceState",
5-
"version": "4.1.6",
5+
"version": "4.1.7",
66
"keywords": ["history", "pushState", "replaceState"],
77
"main": "history.js",
88
"scripts": ["history.js"],

history.iegte8.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* History API JavaScript Library v4.1.6
2+
* History API JavaScript Library v4.1.7
33
*
44
* Support: IE8+, FF3+, Opera 9+, Safari, Chrome and other
55
*
@@ -11,12 +11,12 @@
1111
* http://www.opensource.org/licenses/mit-license.php
1212
* http://www.gnu.org/licenses/gpl.html
1313
*
14-
* Update: 2014-05-15 17:13
14+
* Update: 2014-05-19 16:57
1515
*/
1616
(function(factory) {
1717
if (typeof define === 'function' && define['amd']) {
1818
// https://github.com/devote/HTML5-History-API/issues/57#issuecomment-43133600
19-
define(typeof document !== "object" || document.readyState === "complete" ? [] : "html5-history-api", factory);
19+
define(typeof document !== "object" || document.readyState !== "loading" ? [] : "html5-history-api", factory);
2020
} else {
2121
factory();
2222
}

history.iegte8.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

history.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* History API JavaScript Library v4.1.6
2+
* History API JavaScript Library v4.1.7
33
*
44
* Support: IE6+, FF3+, Opera 9+, Safari, Chrome and other
55
*
@@ -11,12 +11,12 @@
1111
* http://www.opensource.org/licenses/mit-license.php
1212
* http://www.gnu.org/licenses/gpl.html
1313
*
14-
* Update: 2014-05-15 17:13
14+
* Update: 2014-05-19 16:57
1515
*/
1616
(function(factory) {
1717
if (typeof define === 'function' && define['amd']) {
1818
// https://github.com/devote/HTML5-History-API/issues/57#issuecomment-43133600
19-
define(typeof document !== "object" || document.readyState === "complete" ? [] : "html5-history-api", factory);
19+
define(typeof document !== "object" || document.readyState !== "loading" ? [] : "html5-history-api", factory);
2020
} else {
2121
factory();
2222
}

history.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html5-history-api",
3-
"version": "4.1.6",
3+
"version": "4.1.7",
44
"description": "HTML5 History API expansion for browsers not supporting pushState, replaceState",
55
"main": "history.js",
66
"repository": {

0 commit comments

Comments
 (0)