web/data/cubicweb.widgets.js
changeset 5909 9af8ac182f53
parent 5774 0d792bceb25d
child 6372 4c3e2a92e340
--- a/web/data/cubicweb.widgets.js	Tue Jul 06 17:11:44 2010 +0200
+++ b/web/data/cubicweb.widgets.js	Tue Jul 06 17:15:25 2010 +0200
@@ -355,7 +355,7 @@
         var variableRegexp = /%\((\w+)\)s/g;
         // emulates rgx.findAll()
         while (group = variableRegexp.exec(text)) {
-            if (!self.variables.contains(group[1])) {
+            if (!$.inArray(group[1], self.variables)) {
                 unknownVariables.push(group[1]);
             }
             it++;