incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r489222 - /incubator/xap/trunk/src/xap/data/bridge/FormatterBridge.js
Date Wed, 20 Dec 2006 23:34:39 GMT
Author: jmargaris
Date: Wed Dec 20 15:34:38 2006
New Revision: 489222

URL: http://svn.apache.org/viewvc?view=rev&rev=489222
Log:
Only call initialize on formatter if it exists

Modified:
    incubator/xap/trunk/src/xap/data/bridge/FormatterBridge.js

Modified: incubator/xap/trunk/src/xap/data/bridge/FormatterBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/data/bridge/FormatterBridge.js?view=diff&rev=489222&r1=489221&r2=489222
==============================================================================
--- incubator/xap/trunk/src/xap/data/bridge/FormatterBridge.js (original)
+++ incubator/xap/trunk/src/xap/data/bridge/FormatterBridge.js Wed Dec 20 15:34:38 2006
@@ -100,7 +100,12 @@
 xap.data.bridge.FormatterBridge.prototype.initializeFormatter = function () {
 	/*String*/
 	var id = this.getElement().getAttribute(xap.data.bridge.XmlDataTokens.ID);
-	this._formatter.initialize(id, this.getSession(), this.getElement());
+	
+	//TODO do we even need this at all? addedToContainer can
+	//track the session instead
+	if (this._formatter.initialize){
+		this._formatter.initialize(id, this.getSession(), this.getElement());
+	}
 	this.getFormatterContainer().put(id, this._formatter);
 };
 /**



Mime
View raw message