IE8 fixes
This commit is contained in:
parent
12dcdf13fc
commit
aa8f4133be
5 changed files with 11 additions and 10 deletions
|
|
@ -357,7 +357,11 @@ if (
|
|||
var type = Object.prototype.toString.call(
|
||||
value
|
||||
).slice(8, -1).toLowerCase();
|
||||
if (type == 'object' && typeof value.callee == 'function') {
|
||||
if (value === null) {
|
||||
type = 'null';
|
||||
} else if (value === void 0) {
|
||||
type = 'undefined'
|
||||
} else if (type == 'object' && typeof value.callee == 'function') {
|
||||
type = 'arguments';
|
||||
} else if (
|
||||
type == 'htmlcollection' || (
|
||||
|
|
@ -367,10 +371,6 @@ if (
|
|||
)
|
||||
) {
|
||||
type = 'nodelist';
|
||||
} else if (value === null) {
|
||||
type = 'null';
|
||||
} else if (value === void 0) {
|
||||
type = 'undefined'
|
||||
}
|
||||
return type;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue