Merge pull request #1193 from lookfirst/issue-892-2

fix for issue #892 , second time around.
This commit is contained in:
Vladimir Agafonkin 2012-11-30 15:42:50 -08:00
commit 7e029d21cc

View File

@ -106,7 +106,7 @@ L.DomUtil = {
},
enableTextSelection: function () {
if (document.onselectstart === L.Util.falseFn) {
if (document.onselectstart === L.Util.falseFn && this._onselectstart) {
document.onselectstart = this._onselectstart;
this._onselectstart = null;
}