Skip to content

Instantly share code, notes, and snippets.

@joachimhs
Created July 11, 2013 07:26
Show Gist options
  • Save joachimhs/5973284 to your computer and use it in GitHub Desktop.
Save joachimhs/5973284 to your computer and use it in GitHub Desktop.
Strange ===
Embriak.BucketLiView = Ember.View.extend({
tagName: 'li',
template: Ember.Handlebars.compile('{{#linkTo keys this}}{{id}}{{/linkTo}}'),
classNameBinding: 'active',
active: function() {
console.log("this.get('content.id') === this.get('controller.controllers.keys.content.id'): '" + this.get('content.id') + "' ::: '" + this.get('controller.controllers.keys.content.id') + "'");
console.log("this.get('content.id') === this.get('controller.controllers.keys.content.id'): " + this.get('content.id') === this.get('controller.controllers.keys.content.id'));
return this.get('content.id') === this.get('controller.controllers.keys.content.id');
}.property('controller.controllers.keys.content.id')
});
Then, in the console output I see this:
this.get('content.id') === this.get('controller.controllers.keys.content.id'): 'ps_Amol Asha_art' ::: 'ps_Amol Asha_art'
false
how can that return false ??
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment