[Mapbender-commits] r3855 - trunk/mapbender/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Apr 7 11:42:53 EDT 2009


Author: christoph
Date: 2009-04-07 11:42:53 -0400 (Tue, 07 Apr 2009)
New Revision: 3855

Modified:
   trunk/mapbender/lib/event.js
Log:
http://trac.osgeo.org/mapbender/ticket/428

Modified: trunk/mapbender/lib/event.js
===================================================================
--- trunk/mapbender/lib/event.js	2009-04-07 15:42:19 UTC (rev 3854)
+++ trunk/mapbender/lib/event.js	2009-04-07 15:42:53 UTC (rev 3855)
@@ -165,9 +165,9 @@
 	 * Executes the function
 	 */
 	this.execute = function (argumentObj) {
-		if (typeof(aFunction) == "function") {
+		if (typeof(func) == "function" || typeof(func) == "object") {
 			if (scope) {
-				return aFunction.call(scope, argumentObj);
+				return func.call(scope, argumentObj);
 			}
 			return func(argumentObj);
 		}
@@ -200,4 +200,4 @@
 	// private
 	var func = aFunction;
 	var scope = aScope;
-};
\ No newline at end of file
+};



More information about the Mapbender_commits mailing list