[Mapbender-commits] r3853 - branches/2.5/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Apr 7 11:41:34 EDT 2009


Author: christoph
Date: 2009-04-07 11:41:34 -0400 (Tue, 07 Apr 2009)
New Revision: 3853

Modified:
   branches/2.5/http/javascripts/event.js
Log:
http://trac.osgeo.org/mapbender/ticket/428

Modified: branches/2.5/http/javascripts/event.js
===================================================================
--- branches/2.5/http/javascripts/event.js	2009-04-06 14:35:34 UTC (rev 3852)
+++ branches/2.5/http/javascripts/event.js	2009-04-07 15:41:34 UTC (rev 3853)
@@ -132,6 +132,10 @@
 		return propertiesObj;
 	};
 
+	this.getLength = function () {
+		return functionArray.length;
+	};
+
 	// private
 	/**
 	 * these functions will be executed once the event is triggered
@@ -159,7 +163,7 @@
 	 * Executes the function
 	 */
 	this.execute = function (argumentObj) {
-		if (typeof(aFunction) == "function") {
+		if (typeof(func) == "function" || typeof(func) == "object") {
 			return func(argumentObj);
 		}
 



More information about the Mapbender_commits mailing list