Fix a jshint failure

This commit is contained in:
Neil Lalonde 2013-03-09 15:53:30 -05:00
parent 8927432a93
commit 3d7dfd3168
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ Handlebars.registerHelper('valueAtDaysAgo', function(property, i) {
var data = Ember.Handlebars.get(this, property);
if( data ) {
var wantedDate = Date.create(i + ' days ago').format('{yyyy}-{MM}-{dd}');
var item = data.find( function(d, i, arr) { return d.x == wantedDate; } );
var item = data.find( function(d, i, arr) { return d.x === wantedDate; } );
if( item ) {
return item.y;
} else {