Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Simplify var name and follow same name convertions as in #513
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9603c79a544c2243ba47a8c27ad5f62fdb3fdbe3
  • Loading branch information
pedropintosilva committed Nov 9, 2020
1 parent 46446f2 commit 1633fae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions loleaflet/src/control/Ruler.js
Expand Up @@ -366,13 +366,13 @@ L.Control.Ruler = L.Control.extend({
this._lToolTip = L.DomUtil.create('div', 'loleaflet-ruler-ltooltip', this._lMarginDrag);
this._rMarginDrag = L.DomUtil.create('div', 'loleaflet-ruler-drag loleaflet-ruler-right', this._rMarginWrapper);
this._rToolTip = L.DomUtil.create('div', 'loleaflet-ruler-rtooltip', this._rMarginDrag);
var rulerLeftMargin = _('Left Margin');
var rulerRightMargin = _('Right Margin');
var lMarginTooltipText = _('Left Margin');
var rMarginTooltipText = _('Right Margin');

this._lMarginDrag.dataset.title = rulerLeftMargin;
this._lMarginDrag.setAttribute('aria-label', rulerLeftMargin);
this._rMarginDrag.dataset.title = rulerRightMargin;
this._rMarginDrag.setAttribute('aria-label', rulerRightMargin);
this._lMarginDrag.dataset.title = lMarginTooltipText;
this._lMarginDrag.setAttribute('aria-label', lMarginTooltipText);
this._rMarginDrag.dataset.title = rMarginTooltipText;
this._rMarginDrag.setAttribute('aria-label', rMarginTooltipText);

if (window.ThisIsTheiOSApp) {
this.options.interactive = true;
Expand Down

0 comments on commit 1633fae

Please sign in to comment.