Skip to content

Commit

Permalink
[BUG #6852] Let q extend from BaseArray instead of array to ensure IE…
Browse files Browse the repository at this point in the history
…7 capability.
  • Loading branch information
wittemann committed Sep 27, 2012
1 parent 4591b54 commit b4d00f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/source/class/q.js
Expand Up @@ -30,7 +30,7 @@
* <a href='http://manual.qooxdoo.org/${qxversion}/pages/website.html' target='_blank'>user manual</a>.
*/
qx.Bootstrap.define("q", {
extend : Array,
extend : qx.type.BaseArray,
statics : {
// internal storage for all initializers
__init : [],
Expand Down Expand Up @@ -59,11 +59,13 @@ qx.Bootstrap.define("q", {
clean.push(arg[i]);
}
}

// check for node or window object
var col = qx.lang.Array.cast(clean, q);
for (var i=0; i < q.__init.length; i++) {
q.__init[i].call(col);
}

return col;
},

Expand Down

0 comments on commit b4d00f4

Please sign in to comment.