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,9 +28,12 @@
|
|||
|
||||
Diaspora.WidgetCollection.prototype.init = function() {
|
||||
this.initialized = true;
|
||||
|
||||
for(var widgetId in this.collection) {
|
||||
if(this.collection[widgetId].hasOwnProperty("start")) {
|
||||
this.collection[widgetId].start();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Diaspora.widgets = new Diaspora.WidgetCollection();
|
||||
|
|
|
|||
Loading…
Reference in a new issue