Skip to content

Instantly share code, notes, and snippets.

View jbrown's full-sized avatar

Justin Brown jbrown

View GitHub Profile
@jbrown
jbrown / app.js
Created January 27, 2012 15:53 — forked from adjohu/app.js
Editor.ElementView = Em.View.extend({
classNameBindings: ['isSelected'],
isSelected: function() {
var selectedElement = Editor.selectedElementController.get('content'),
content = this.get('content');
if(selectedElement === content) { return true; }
}.property('Editor.selectedElementController.content', 'content'),