Skip to content

Commit 6883b7e

Browse files
committed
#104 Can not bundle package using webpack 2
1 parent 91c6dc9 commit 6883b7e

8 files changed

Lines changed: 28 additions & 26 deletions

File tree

LICENSE-MIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License (MIT)
22

3-
Copyright (c) 2010-2016 Dmitrii Pakhtinov
3+
Copyright (c) 2010-2017 Dmitrii Pakhtinov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

bower.json

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

component.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.2.7",
3+
"version": "4.2.8",
44
"description": "HTML5 History API expansion for browsers not supporting pushState, replaceState",
55
"main": "history.js",
66
"scripts": ["history.js"],

history.ielte7.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
/*!
2-
* History API JavaScript Library v4.2.7
2+
* History API JavaScript Library v4.2.8
33
*
44
* Support: IE6+, FF3+, Opera 9+, Safari, Chrome and other
55
*
6-
* Copyright 2011-2015, Dmitrii Pakhtinov ( spb.piksel@gmail.com )
6+
* Copyright 2011-2017, Dmitrii Pakhtinov ( spb.piksel@gmail.com )
77
*
88
* http://spb-piksel.ru/
99
*
1010
* MIT license:
1111
* http://www.opensource.org/licenses/mit-license.php
1212
*
13-
* Update: 2016-03-08 16:57
13+
* Update: 2017-03-01 12:07
1414
*/
1515
(function(factory) {
1616
if (typeof define === 'function' && define['amd']) {
1717
if (typeof requirejs !== 'undefined') {
1818
// https://github.com/devote/HTML5-History-API/issues/73
19-
var rndKey = '[history' + (new Date()).getTime() + ']';
20-
var onError = requirejs['onError'];
19+
var r = requirejs,
20+
rndKey = '[history' + (new Date()).getTime() + ']';
21+
var onError = r['onError'];
2122
factory.toString = function() {
2223
return rndKey;
2324
};
24-
requirejs['onError'] = function(err) {
25+
r['onError'] = function(err) {
2526
if (err.message.indexOf(rndKey) === -1) {
26-
onError.call(requirejs, err);
27+
onError.call(r, err);
2728
}
2829
};
2930
}

history.ielte7.min.js

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

history.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
/*!
2-
* History API JavaScript Library v4.2.7
2+
* History API JavaScript Library v4.2.8
33
*
44
* Support: IE8+, FF3+, Opera 9+, Safari, Chrome and other
55
*
6-
* Copyright 2011-2015, Dmitrii Pakhtinov ( spb.piksel@gmail.com )
6+
* Copyright 2011-2017, Dmitrii Pakhtinov ( spb.piksel@gmail.com )
77
*
88
* http://spb-piksel.ru/
99
*
1010
* MIT license:
1111
* http://www.opensource.org/licenses/mit-license.php
1212
*
13-
* Update: 2016-03-08 16:57
13+
* Update: 2017-03-01 12:07
1414
*/
1515
(function(factory) {
1616
if (typeof define === 'function' && define['amd']) {
1717
if (typeof requirejs !== 'undefined') {
1818
// https://github.com/devote/HTML5-History-API/issues/73
19-
var rndKey = '[history' + (new Date()).getTime() + ']';
20-
var onError = requirejs['onError'];
19+
var r = requirejs,
20+
rndKey = '[history' + (new Date()).getTime() + ']';
21+
var onError = r['onError'];
2122
factory.toString = function() {
2223
return rndKey;
2324
};
24-
requirejs['onError'] = function(err) {
25+
r['onError'] = function(err) {
2526
if (err.message.indexOf(rndKey) === -1) {
26-
onError.call(requirejs, err);
27+
onError.call(r, err);
2728
}
2829
};
2930
}

history.min.js

Lines changed: 4 additions & 4 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
@@ -7,7 +7,7 @@
77
"*.js"
88
]
99
}],
10-
"version": "4.2.7",
10+
"version": "4.2.8",
1111
"description": "HTML5 History API expansion for browsers not supporting pushState, replaceState",
1212
"main": "history.js",
1313
"repository": {

0 commit comments

Comments
 (0)