Permalink
Browse files

allow offcanvas title to update

  • Loading branch information...
1 parent bb1fe1d commit cc5d3cacb18258699f889e37b69244eec6875c89 @ralphsmith80 ralphsmith80 committed Jun 17, 2016
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/views/offcanvas.js
View
@@ -119,6 +119,16 @@ define([
this.propagate('show');
this.trigger('show');
return this;
- }
+ },
+ update: function(changed) {
+ var self = this;
+ this._super.apply(this, arguments);
+ if (changed.title) {
+ this.waitForInitialRender.then(function() {
+ self.$el.find('h1').text(self.get('title'));
+ });
+ }
+ return this;
+ },
});
});

0 comments on commit cc5d3ca

Please sign in to comment.