[FIX] "bzr cdiff" operator binds tighter than "instanceof", remember to parenthesize "instanceof" calls before negating them

bzr revid: xmo@openerp.com-20120306145029-pckye3yoig2xlhh8
This commit is contained in:
Xavier Morel 2012-03-06 15:50:29 +01:00
parent c1ec7b1938
commit 79f79deec1
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ openerp.web.Query = openerp.web.Class.extend({
* @returns {openerp.web.Query}
*/
order_by: function (fields) {
if (!fields instanceof Array) {
if (!(fields instanceof Array)) {
fields = _.toArray(arguments);
}
if (_.isEmpty(fields)) { return this; }