[FIX] Fix QWeb2.tools.extend causing t-import="" to fail

bzr revid: fme@openerp.com-20110504104357-nasddf7xj8i78s9k
This commit is contained in:
Fabien Meghazi
2011-05-04 12:43:57 +02:00
parent 0ebabe18bd
commit cff71ab3f4
+1 -1
View File
@@ -53,7 +53,7 @@ var QWeb2 = {
},
extend: function(dst, src, exclude) {
for (var p in src) {
if (src.hasOwnProperty(p) && !(exclude && this.arrayIndexOf(exclude, p))) {
if (src.hasOwnProperty(p) && !(exclude && this.arrayIndexOf(exclude, p) !== -1)) {
dst[p] = src[p];
}
}