use typeof operand instead of object#hasOwnProperty
This commit is contained in:
parent
605382a478
commit
d28e7e70b8
1 changed files with 1 additions and 2 deletions
|
|
@ -31,8 +31,7 @@
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
|
|
||||||
for(var widgetId in this.collection) {
|
for(var widgetId in this.collection) {
|
||||||
if(this.collection[widgetId].hasOwnProperty("start")
|
if(typeof this.collection[widgetId].start !== "undefined") {
|
||||||
|| this.collection[widgetId].__proto__.hasOwnProperty("start")) {
|
|
||||||
this.collection[widgetId].start();
|
this.collection[widgetId].start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue