mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-25 05:23:36 -04:00
Fix a jshint failure
This commit is contained in:
parent
8927432a93
commit
3d7dfd3168
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue