You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/03/22 19:45:49 UTC
svn commit: r521421 -
/incubator/xap/trunk/codebase/src/xap/data/datasource/AbstractDataSource.js
Author: jmargaris
Date: Thu Mar 22 12:45:49 2007
New Revision: 521421
URL: http://svn.apache.org/viewvc?view=rev&rev=521421
Log:
only run postponed queries if we have a valud source
Modified:
incubator/xap/trunk/codebase/src/xap/data/datasource/AbstractDataSource.js
Modified: incubator/xap/trunk/codebase/src/xap/data/datasource/AbstractDataSource.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/data/datasource/AbstractDataSource.js?view=diff&rev=521421&r1=521420&r2=521421
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/data/datasource/AbstractDataSource.js (original)
+++ incubator/xap/trunk/codebase/src/xap/data/datasource/AbstractDataSource.js Thu Mar 22 12:45:49 2007
@@ -282,8 +282,11 @@
xap.data.datasource.AbstractDataSource.prototype.refresh = function () {
this.fireDataChanged();
this.executeQueries(this._boundQueries);
- this.executeQueries(this._postponedQueries);
- this._postponedQueries = [];
+ if (this.getSource()){
+ this.executeQueries(this._postponedQueries);
+ this._postponedQueries = [];
+ }
+
};