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