Skip to content

Commit

Permalink
Merge pull request #162 from marks/152-support-null-queries
Browse files Browse the repository at this point in the history
152 support null queries
  • Loading branch information
timwis committed Jan 23, 2016
2 parents ca6502f + 1d83292 commit 5c04d29
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/scripts/collections/baseprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ var model = Backbone.Model.extend({
})

var enclose = function (val) {
return typeof val === 'string' && val != 'true' && val != 'false' ? "'" + val + "'" : val // eslint-disable-line
if (typeof val === 'string' && val != 'true' && val != 'false') { // eslint-disable-line
return "'" + val + "'"
} else if (val === null) {
return 'null'
} else {
return val
}
}

module.exports = Backbone.Collection.extend({
Expand Down

0 comments on commit 5c04d29

Please sign in to comment.