loleaflet: move decoding comment where decoding happens

This commit is contained in:
Miklos Vajna 2015-11-17 21:09:29 +01:00
parent d18667d000
commit 346b76fd93
2 changed files with 1 additions and 1 deletions

View file

@ -86,6 +86,7 @@ L.Socket = {
// if it's not a tile, parse the whole message
textMsg = String.fromCharCode.apply(null, imgBytes);
}
// Decode UTF-8.
textMsg = decodeURIComponent(window.escape(textMsg));
}
else {

View file

@ -903,7 +903,6 @@ L.TileLayer = L.GridLayer.extend({
this._map.fire('error', {msg: 'Oops, no content available yet'});
}
else {
// Decode UTF-8.
e.clipboardData.setData('text/plain', this._selectionTextContent);
}
},