Permalink
Browse files

Need to change location of attribute/classBinding additions again bec…

…ause of where Handlebars hooks into view rendering process
  • Loading branch information...
1 parent acdd007 commit 7e84bc7fb7239274664e2d4b75f8b9aee8a8d275 @ColinCampbell ColinCampbell committed Jul 30, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 frameworks/core_foundation/views/view.js
View
7 frameworks/core_foundation/views/view.js
@@ -625,8 +625,6 @@ SC.CoreView.reopen(
if (SC.none(firstTime)) { firstTime = YES; }
this._renderLayerSettings(context, firstTime);
- this._applyClassNameBindings();
- this._applyAttributeBindings(context);
// If the render method takes two parameters, we assume that it is a
// legacy implementation that takes context and firstTime. If it has only
@@ -672,6 +670,11 @@ SC.CoreView.reopen(
},
applyAttributesToContext: function(context) {
+ if (!this.get('layer')) {
+ this._applyClassNameBindings();
+ this._applyAttributeBindings(context);
+ }
+
context.addClass(this.get('classNames'));
if (this.get('isTextSelectable')) { context.addClass('allow-select'); }

0 comments on commit 7e84bc7

Please sign in to comment.