From 394641e3b1385cda079acd7ca2d832588b66635c Mon Sep 17 00:00:00 2001 From: Arno Renevier Date: Fri, 17 Feb 2012 11:23:23 +0100 Subject: [PATCH] minor js cleanup --- public/js/syj.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/syj.js b/public/js/syj.js index 2f3f676..5dc3059 100644 --- a/public/js/syj.js +++ b/public/js/syj.js @@ -393,7 +393,7 @@ var SYJView = { this.map.updateSize(); this.map.zoomToExtent(this.viewLayer.getDataExtent()); } else { - this.initMaPos(gInitialPos); + this.initMapPos(gInitialPos); } $("map-overlay").hide(); @@ -503,7 +503,7 @@ var SYJView = { return control; }, - initMaPos: function (aPos) { + initMapPos: function (aPos) { var extent = null, center = null, zoom = 0; if (aPos.hasOwnProperty('lon') && aPos.hasOwnProperty('lat') && aPos.hasOwnProperty('zoom')) { @@ -853,11 +853,11 @@ var SYJUserClass = Class.create(SYJModalClass, { $("termsofuseiframe").setAttribute("src", evt.target.href); } evt.stop(); - }).bindAsEventListener(this); + }.bindAsEventListener(this)); ["click", "keyup"].each(function (evtName) { $$("#user_termsofuse_anchor, #geom_termsofuse_anchor").invoke('observe', evtName, touevt); - }) + }); $$("#login_area_create > a").invoke('observe', 'click', function(evt) { -- 2.39.2