null check setting of document.onselectstart

This commit is contained in:
Jon Stevens 2012-08-10 13:20:48 -07:00
parent 0bdc48a864
commit 1e363f29f1

View File

@ -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) {