null check setting of document.onselectstart
This commit is contained in:
parent
0bdc48a864
commit
1e363f29f1
@ -85,8 +85,10 @@ L.DomUtil = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
enableTextSelection: function () {
|
enableTextSelection: function () {
|
||||||
|
if (this._onselectstart) {
|
||||||
document.onselectstart = this._onselectstart;
|
document.onselectstart = this._onselectstart;
|
||||||
this._onselectstart = null;
|
this._onselectstart = null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
hasClass: function (el, name) {
|
hasClass: function (el, name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user