From b4d00f45090b468874837332828b246c4485f7b4 Mon Sep 17 00:00:00 2001 From: wittemann Date: Thu, 27 Sep 2012 12:43:31 +0200 Subject: [PATCH] [BUG #6852] Let q extend from BaseArray instead of array to ensure IE7 capability. --- framework/source/class/q.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/source/class/q.js b/framework/source/class/q.js index c6b614e5dcb..518d804228e 100644 --- a/framework/source/class/q.js +++ b/framework/source/class/q.js @@ -30,7 +30,7 @@ * user manual. */ qx.Bootstrap.define("q", { - extend : Array, + extend : qx.type.BaseArray, statics : { // internal storage for all initializers __init : [], @@ -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; },