import com.google.gwt.query.client.js.JsMap;\r
import com.google.gwt.query.client.js.JsNamedArray;\r
import com.google.gwt.query.client.js.JsNodeArray;\r
+import com.google.gwt.query.client.js.JsObjectArray;\r
import com.google.gwt.query.client.js.JsRegexp;\r
import com.google.gwt.query.client.js.JsUtils;\r
import com.google.gwt.query.client.plugins.Effects;\r
*/\r
public GQuery setArray(NodeList<Element> list) {\r
if (list != null) {\r
- nodeList = list;\r
+ nodeList.<JsCache>cast().clear();\r
int l = list.getLength();\r
elements = new Element[l];\r
for (int i = 0; i < l; i++) {\r
elements[i] = list.getItem(i);\r
+ nodeList.<JsObjectArray>cast().add(list.getItem(i));\r
}\r
}\r
return this;\r