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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 22 10:42:46 EDT 2010


Author: christoph
Date: 2010-06-22 14:42:46 +0000 (Tue, 22 Jun 2010)
New Revision: 6397

Modified:
   trunk/mapbender/lib/wizard.js
Log:


Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js	2010-06-22 14:38:57 UTC (rev 6396)
+++ trunk/mapbender/lib/wizard.js	2010-06-22 14:42:46 UTC (rev 6397)
@@ -3,6 +3,7 @@
  * Link between various interfaces, imagine a wizard
  */
 $.fn.wizard = function (options) {
+	var args = arguments;
 	return this.each(function () {
 		var getPath = function ($t) {
 			var m = $t.metadata({
@@ -38,7 +39,7 @@
 	
 		var to = function () {
 			if (arguments.length === 2) {
-				var $target = $(arguments[1]);
+				var $target = arguments[1];
 				console.log($target);
 				var href = "#" + $target.id;
 				var me = null;
@@ -87,8 +88,8 @@
 				console.log("not a wizard!");
 				return;
 			}
-			if (options === "to" && arguments.length === 2) {
-				return to(null, arguments[1]);
+			if (options === "to" && args.length === 2) {
+				return to(null, args[1]);
 			}
 			console.log("invalid command!");
 			return;



More information about the Mapbender_commits mailing list