[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:
parent
c1ec7b1938
commit
79f79deec1
|
@ -185,7 +185,7 @@ openerp.web.Query = openerp.web.Class.extend({
|
||||||
* @returns {openerp.web.Query}
|
* @returns {openerp.web.Query}
|
||||||
*/
|
*/
|
||||||
order_by: function (fields) {
|
order_by: function (fields) {
|
||||||
if (!fields instanceof Array) {
|
if (!(fields instanceof Array)) {
|
||||||
fields = _.toArray(arguments);
|
fields = _.toArray(arguments);
|
||||||
}
|
}
|
||||||
if (_.isEmpty(fields)) { return this; }
|
if (_.isEmpty(fields)) { return this; }
|
||||||
|
|
Loading…
Reference in New Issue