Skip to content

Commit

Permalink
ax5core 0.9.6 - ie8 Array.splice polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasJang committed Mar 18, 2016
1 parent 1276d8b commit f7e8163
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ax5core",
"version": "0.9.5",
"version": "0.9.6",
"authors": [
"ThomasJ <tom@axisj.com>"
],
Expand Down
11 changes: 11 additions & 0 deletions dist/ax5core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1957,6 +1957,17 @@ ax5.info.errorMsg["ax5formatter"] = {
};
}

// splice ie8 <= polyfill
(function () {
if (!document.documentMode || document.documentMode >= 9) return false;
var _splice = Array.prototype.splice;
Array.prototype.splice = function () {
var args = Array.prototype.slice.call(arguments);
if (typeof args[1] === "undefined") args[1] = this.length - args[0];
return _splice.apply(this, args);
};
})();

// Console-polyfill. MIT license. https://github.com/paulmillr/console-polyfill
// Make it safe to do console.log() always.
(function (con) {
Expand Down
Loading

0 comments on commit f7e8163

Please sign in to comment.