Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 5a5967e

Browse files
committed
add object-assign pollyfill, for travis
1 parent 9eb4e00 commit 5a5967e

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

lib/object-assign-pollyfill.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
if (typeof Object.assign != 'function') {
2+
(function () {
3+
Object.assign = function (target) {
4+
'use strict';
5+
if (target === undefined || target === null) {
6+
throw new TypeError('Cannot convert undefined or null to object');
7+
}
8+
9+
var output = Object(target);
10+
for (var index = 1; index < arguments.length; index++) {
11+
var source = arguments[index];
12+
if (source !== undefined && source !== null) {
13+
for (var nextKey in source) {
14+
if (Object.prototype.hasOwnProperty.call(source, nextKey)) {
15+
output[nextKey] = source[nextKey];
16+
}
17+
}
18+
}
19+
}
20+
return output;
21+
};
22+
})();
23+
}

src/main/html/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
1111
<link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
1212
<link href='css/print.css' media='print' rel='stylesheet' type='text/css'/>
13+
14+
<script src='lib/object-assign-pollyfill.js' type='text/javascript'></script>
1315
<script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
1416
<script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
1517
<script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>

0 commit comments

Comments
 (0)