##// END OF EJS Templates
correction
sylvain.corlay -
Show More
@@ -409,9 +409,11 define(["widgets/js/manager",
409 // Public constructor
409 // Public constructor
410 DOMWidgetView.__super__.initialize.apply(this, arguments);
410 DOMWidgetView.__super__.initialize.apply(this, arguments);
411 this.on('displayed', this.show, this);
411 this.on('displayed', this.show, this);
412
412 this.model.on('msg:custom', this.on_msg, this);
413 this.model.on('msg:custom', this.on_msg, this);
413 this.model.on('change:visible', this.update_visible, this);
414 this.model.on('change:visible', this.update_visible, this);
414 this.model.on('change:_css', this.update_css, this);
415 this.model.on('change:_css', this.update_css, this);
416
415 this.update_visible(this.model, this.model.get("visible"));
417 this.update_visible(this.model, this.model.get("visible"));
416 this.update_css(this.model, this.model.get("_css"));
418 this.update_css(this.model, this.model.get("_css"));
417 },
419 },
@@ -30,7 +30,7 define([
30 var that = this;
30 var that = this;
31 this.on('displayed', function() {
31 this.on('displayed', function() {
32 this.update_titles();
32 this.update_titles();
33 }
33 }, this);
34 },
34 },
35
35
36 update_titles: function(titles) {
36 update_titles: function(titles) {
General Comments 0
You need to be logged in to leave comments. Login now