Skip to content

Commit

Permalink
Merge branch 'master' of github.com:xavierlacot/joli.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Mar 29, 2011
2 parents 71ed892 + c62bc6e commit 8cb13db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion joli.js
Expand Up @@ -577,7 +577,12 @@ joli.query.prototype = {

set: function(values) {
joli.each(values, function(expression, value) {
this.data.set.push(value + ' = ' + joli.typeValue(expression));
if (-1 === value.indexOf('=')) {
this.data.set.push(value + ' = ' + joli.typeValue(expression));
} else {
// some particular expression containing "="
this.data.set.push(value);
}
}, this);
return this;
},
Expand Down

0 comments on commit 8cb13db

Please sign in to comment.