make a widget's start method optional
This commit is contained in:
parent
2eaf5abf32
commit
c0cd8fafff
1 changed files with 4 additions and 1 deletions
|
|
@ -28,8 +28,11 @@
|
||||||
|
|
||||||
Diaspora.WidgetCollection.prototype.init = function() {
|
Diaspora.WidgetCollection.prototype.init = function() {
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
|
|
||||||
for(var widgetId in this.collection) {
|
for(var widgetId in this.collection) {
|
||||||
this.collection[widgetId].start();
|
if(this.collection[widgetId].hasOwnProperty("start")) {
|
||||||
|
this.collection[widgetId].start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue