incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r512523 - /incubator/xap/trunk/codebase/src/xap/data/datasource/SimpleDocumentDataSource.js
Date Wed, 28 Feb 2007 00:42:35 GMT
Author: jmargaris
Date: Tue Feb 27 16:42:35 2007
New Revision: 512523

URL: http://svn.apache.org/viewvc?view=rev&rev=512523
Log:
fixed bad instanceof check

Modified:
    incubator/xap/trunk/codebase/src/xap/data/datasource/SimpleDocumentDataSource.js

Modified: incubator/xap/trunk/codebase/src/xap/data/datasource/SimpleDocumentDataSource.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/data/datasource/SimpleDocumentDataSource.js?view=diff&rev=512523&r1=512522&r2=512523
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/data/datasource/SimpleDocumentDataSource.js (original)
+++ incubator/xap/trunk/codebase/src/xap/data/datasource/SimpleDocumentDataSource.js Tue Feb
27 16:42:35 2007
@@ -62,7 +62,7 @@
  * @param {xap.xml.dom.Document} document The document to serve as the new source.
  */
 xap.data.datasource.SimpleDocumentDataSource.prototype.setSource = function( document ) {
-	if (! document instanceof xap.xml.dom.Document){
+	if (! (document instanceof xap.xml.dom.Document)){
 		
 		//TODO handle better.
 		throw new xap.util.Exception("Source for a document source must be a document");



Mime
View raw message