Skip to content

Commit 9964240

Browse files
committed
Fix for IE7
1 parent f015410 commit 9964240

6 files changed

Lines changed: 28 additions & 25 deletions

File tree

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.1",
5+
"version": "4.1.2",
66
"keywords": ["history", "pushState", "replaceState"],
77
"main": "history.js",
88
"scripts": ["history.js"],

history.iegte8.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* History API JavaScript Library v4.1.1
2+
* History API JavaScript Library v4.1.2
33
*
44
* Support: IE8+, FF3+, Opera 9+, Safari, Chrome and other
55
*
@@ -11,7 +11,7 @@
1111
* http://www.opensource.org/licenses/mit-license.php
1212
* http://www.gnu.org/licenses/gpl.html
1313
*
14-
* Update: 2014-04-29 15:22
14+
* Update: 2014-04-29 15:30
1515
*/
1616
(function(window) {
1717
// Prevent the code from running if there is no window.history object

history.iegte8.min.js

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

history.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* History API JavaScript Library v4.1.1
2+
* History API JavaScript Library v4.1.2
33
*
44
* Support: IE6+, FF3+, Opera 9+, Safari, Chrome and other
55
*
@@ -11,7 +11,7 @@
1111
* http://www.opensource.org/licenses/mit-license.php
1212
* http://www.gnu.org/licenses/gpl.html
1313
*
14-
* Update: 2014-04-29 15:22
14+
* Update: 2014-04-29 15:30
1515
*/
1616
(function(window) {
1717
// Prevent the code from running if there is no window.history object
@@ -1153,6 +1153,9 @@
11531153
if (!iFrame['lfirst']) {
11541154
iFrame["lfirst"] = 1;
11551155
changeState(state, currentHref, 0, lastURLValue, 1);
1156+
} else if (lfirst) {
1157+
lfirst = 0;
1158+
state = stateStorage[windowLocation.href];
11561159
}
11571160
iFrameDocument.open();
11581161
iFrameDocument.write('\x3Cscript\x3Elfirst=1;parent.location.hash="'

0 commit comments

Comments
 (0)