Refactor URL generating methods

This commit is contained in:
John Firebaugh 2013-07-23 17:30:24 -07:00
parent ce53e510ad
commit b5800b4c2f
4 changed files with 81 additions and 78 deletions

View file

@ -60,8 +60,8 @@ L.OSM.share = function (options) {
}
function update() {
$shortLink.attr('href', options.getShortUrl(map));
$longLink.attr('href', options.getUrl(map));
$shortLink.attr('href', map.getShortUrl());
$longLink.attr('href', map.getUrl());
}
function select() {