sylvain.corlay 12 years ago
parent 34fe520742
commit 5c0fda1dc0

@ -409,9 +409,11 @@ define(["widgets/js/manager",
// Public constructor
DOMWidgetView.__super__.initialize.apply(this, arguments);
this.on('displayed', this.show, this);
this.model.on('msg:custom', this.on_msg, this);
this.model.on('change:visible', this.update_visible, this);
this.model.on('change:_css', this.update_css, this);
this.update_visible(this.model, this.model.get("visible"));
this.update_css(this.model, this.model.get("_css"));
},

@ -30,7 +30,7 @@ define([
var that = this;
this.on('displayed', function() {
this.update_titles();
}
}, this);
},
update_titles: function(titles) {

Loading…
Cancel
Save