修复get.is.node的bug
This commit is contained in:
parent
d566a3d20a
commit
711ff153b2
|
@ -337,11 +337,10 @@ export class Is extends Uninstantable {
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* @param { any } obj
|
* @param { any } obj
|
||||||
|
* @returns { boolean }
|
||||||
*/
|
*/
|
||||||
static node(obj) {
|
static node(obj) {
|
||||||
var str = Object.prototype.toString.call(obj);
|
return Object.prototype.toString.call(obj).startsWith('[object HTML');
|
||||||
if (str && str.indexOf('[object HTML')) return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @param { any } obj
|
* @param { any } obj
|
||||||
|
|
Loading…
Reference in New Issue