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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Feb 23 07:54:15 EST 2010


Author: kmq
Date: 2010-02-23 07:54:15 -0500 (Tue, 23 Feb 2010)
New Revision: 5602

Modified:
   trunk/mapbender/lib/event.js
Log:
made getProperties return an object that contains a 'count' property which contains the number of registered functions 

Modified: trunk/mapbender/lib/event.js
===================================================================
--- trunk/mapbender/lib/event.js	2010-02-23 12:46:49 UTC (rev 5601)
+++ trunk/mapbender/lib/event.js	2010-02-23 12:54:15 UTC (rev 5602)
@@ -30,6 +30,7 @@
 
 		var mpbnFunction = new MapbenderFunction(aFunction, scope);
 		functionArray.push(mpbnFunction);
+		propertiesObj.count = functionArray.length;
 	};
 
 	/**
@@ -46,6 +47,7 @@
 			}
 		}
 		functionArray.length = len;
+		propertiesObj.count = functionArray.length;
 	};
 
 	/**
@@ -147,7 +149,8 @@
 	 */
 	var functionArray = [];
 	
-	var propertiesObj;
+	var propertiesObj = {};
+	propertiesObj.count = 0;
 	var log = false;
 };
 



More information about the Mapbender_commits mailing list