parent
c05e15f956
commit
f203c244d4
@ -105,13 +105,13 @@ L.DomUtil = {
|
|||||||
document.selection.empty();
|
document.selection.empty();
|
||||||
}
|
}
|
||||||
if (!this._onselectstart) {
|
if (!this._onselectstart) {
|
||||||
this._onselectstart = document.onselectstart;
|
this._onselectstart = document.onselectstart || null;
|
||||||
document.onselectstart = L.Util.falseFn;
|
document.onselectstart = L.Util.falseFn;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
enableTextSelection: function () {
|
enableTextSelection: function () {
|
||||||
if (document.onselectstart === L.Util.falseFn && this._onselectstart) {
|
if (document.onselectstart === L.Util.falseFn) {
|
||||||
document.onselectstart = this._onselectstart;
|
document.onselectstart = this._onselectstart;
|
||||||
this._onselectstart = null;
|
this._onselectstart = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user