OpenLayers OpenLayers

Changeset 2508

Show
Ignore:
Timestamp:
03/08/07 07:45:46 (2 years ago)
Author:
crschmidt
Message:

'control' is a global variable, but it's the same as 'this', so change the
example slightly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/vector-2.4/examples/custom-control.html

    r2504 r2508  
    2626                    // this Handler.Box will intercept the shift-mousedown 
    2727                    // before Control.MouseDefault gets to see it 
    28                     control.box = new OpenLayers.Handler.Box( control,  
    29                         {"done": control.notice}, 
     28                    this.box = new OpenLayers.Handler.Box( control,  
     29                        {"done": this.notice}, 
    3030                        {keyMask: OpenLayers.Handler.MOD_SHIFT}); 
    31                     control.box.activate(); 
     31                    this.box.activate(); 
    3232                }, 
    3333