[OpenLayers-Dev] Ticket #1359: spelling mistake?

Chris Rankin rankincj at yahoo.com
Thu Oct 23 17:47:17 EDT 2008


Hi,

I have noticed the following oddity in a patch attached to ticket #1359, at line 152:

http://trac.openlayers.org/attachment/ticket/1359/rightClicks.patch

 	144	        var propagate = true; 
 	145	 
 	146	        // Collect right mouse clicks from the mouseup 
 	147	        //  IE - ignores the second right click in mousedown so using 
 	148	        //  mouseup instead 
 	149	        if (this.checkModifiers(evt) &&  
 	150	            this.control.handleRightClicks &&  
 	151	            OpenLayers.Event.isRightClick(evt)) { 
 	152	          propogate = this.rightclick(evt); 
 	153	        } 
 	154	 
 	155	        return propagate;

Surely that should be "propagate" rather than "propogate"?

Cheers,
Chris

P.S. Is there any reason why the following would NOT notify me of right-clicks on my map?

            map.events.register('rightclick', map, function(e) {
                alert(this.CLASS_NAME);
                return true;
            });

I have already set the handleRightClicks property to "true" on the Navigation control.


      



More information about the Dev mailing list