OpenLayers OpenLayers

Changeset 8021

Show
Ignore:
Timestamp:
09/16/08 12:23:43 (3 months ago)
Author:
euzuro
Message:

Fixing erroneously set default for right-click handlers. Thanks to senior schmidt for pointing out this oversight on my part, and for the quick reviw. (Pullup #1735)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Control/Navigation.js

    r7872 r8021  
    5353     * {Boolean} Whether or not to handle right clicks. Default is false. 
    5454     */ 
    55     handleRightClicks: true, 
     55    handleRightClicks: false, 
    5656     
    5757    /** 
  • trunk/openlayers/tests/Control/Navigation.html

    r6719 r8021  
    55 
    66    function test_Control_Navigation_constructor (t) { 
    7         t.plan( 2 ); 
     7        t.plan( 3 ); 
    88        var temp = OpenLayers.Control.prototype.initialize; 
    99        OpenLayers.Control.prototype.initialize = function() { 
     
    1313        var control = new OpenLayers.Control.Navigation(); 
    1414        t.ok( control instanceof OpenLayers.Control.Navigation, "new OpenLayers.Control returns object" ); 
     15 
     16        t.ok( !control.handleRightClicks, "'handleRightClicks' property is disabled by default"); 
    1517 
    1618        OpenLayers.Control.prototype.initialize = temp;