Review: Needs Fixing
Fix is not correct: `in` operator must *never* be used with arrays, it will
check if value is *key of object* not if value is in the array, not like Python:
js> var ar = [10, 20, 30, 40, 50];
js> 1 in ar;
true
js> 10 in ar;
false
For checking if value is in array, or in object, use underscore "contains"
function.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-573705-msh/+merge/101684
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-573705-msh.
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp