-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Better IE8 support for element and HTML interfaces * Build updates for better IE8 support * QUnit test updates for IE8 support * Karma tests now only run qunit. Mocha tests will test logic/behaviour, Karma ensures test browser functionality * Ensure correct jquery version is used for CI tests * Additional render possibility to get IE8 to work * IE8 readme docs [ci skip]
- Loading branch information
Nick Frasser
committed
May 16, 2016
1 parent
7f58815
commit 75e673e
Showing
30 changed files
with
406 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
(function () { | ||
if (typeof Object.freeze != 'function') { | ||
Object.freeze = function (obj) { return obj; } | ||
} | ||
if (typeof Object.create != 'function') { | ||
Object.create = (function() { | ||
var Temp = function() {}; | ||
return function (prototype) { | ||
if(prototype !== Object(prototype) && prototype !== null) { | ||
throw TypeError('Argument must be an object or null'); | ||
} | ||
if (prototype === null) { | ||
throw Error('null [[Prototype]] not supported'); | ||
} | ||
Temp.prototype = prototype; | ||
var result = new Temp(); | ||
Temp.prototype = null; | ||
return result; | ||
}; | ||
})(); | ||
} | ||
|
||
if (typeof Object.defineProperty != 'function') { | ||
Object.defineProperty = function defineProperty(object, property, descriptor) { | ||
if ('value' in descriptor) { | ||
object[property] = descriptor.value; | ||
} | ||
return object; | ||
}; | ||
} | ||
|
||
if (!Array.prototype.indexOf) { | ||
Array.prototype.indexOf = function (searchElement, fromIndex) { | ||
var k; | ||
if (this == null) { | ||
throw new TypeError('"this" is null or not defined'); | ||
} | ||
var o = Object(this); | ||
var len = o.length >>> 0; | ||
if (len === 0) { | ||
return -1; | ||
} | ||
var n = +fromIndex || 0; | ||
if (Math.abs(n) === Infinity) { | ||
n = 0; | ||
} | ||
if (n >= len) { | ||
return -1; | ||
} | ||
k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); | ||
while (k < len) { | ||
if (k in o && o[k] === searchElement) { | ||
return k; | ||
} | ||
k++; | ||
} | ||
return -1; | ||
}; | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.