]> dev.renevier.net Git - syj.git/commitdiff
minor js cleanup v0.4
authorArno Renevier <arno@renevier.net>
Fri, 17 Feb 2012 10:23:23 +0000 (11:23 +0100)
committerArno Renevier <arno@renevier.net>
Fri, 17 Feb 2012 11:07:09 +0000 (12:07 +0100)
public/js/syj.js

index 2f3f676be1a12b9e95170087f464b5b42064552c..5dc305957dd551b6432b657c7623099cd91c6c1d 100644 (file)
@@ -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) {