OpenLayers OpenLayers

Changeset 5911

Show
Ignore:
Timestamp:
01/27/08 09:48:02 (1 year ago)
Author:
crschmidt
Message:

Because onselectstart is null by default, our logic to set it and
replace it was somewhat lacking. This changes the behavior such that
using hte drag handler does not totally disable text selection in IE.
Patch from Bart, r=me (Closes #906)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Handler/Drag.js

    r5697 r5911  
    168168             
    169169            if(!this.oldOnselectstart) { 
    170                 this.oldOnselectstart = document.onselectstart
     170                this.oldOnselectstart = (document.onselectstart) ? document.onselectstart : function() { return true; }
    171171                document.onselectstart = function() {return false;}; 
    172172            }