[Mapbender-commits] r3854 - branches/2.6/lib

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


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

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

Modified: branches/2.6/lib/event.js
===================================================================
--- branches/2.6/lib/event.js	2009-04-07 15:41:34 UTC (rev 3853)
+++ branches/2.6/lib/event.js	2009-04-07 15:42:19 UTC (rev 3854)
@@ -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