Fixing lint errors
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ window._gaq = (typeof _gaq !== 'undefined') ? _gaq : {
|
||||
// Initialize the main page of the site. Functionality is kept in the
|
||||
// [Regexper class](./regexper.html).
|
||||
if (document.body.querySelector('#content .application')) {
|
||||
var regexper = new Regexper(document.body);
|
||||
let regexper = new Regexper(document.body);
|
||||
|
||||
regexper.detectBuggyHash();
|
||||
regexper.bindListeners();
|
||||
|
||||
@@ -84,7 +84,7 @@ export default class Parser {
|
||||
// Once rendering is complete, the rendered expression is positioned and
|
||||
// the SVG resized to create some padding around the image contents.
|
||||
.then(result => {
|
||||
var box = result.getBBox();
|
||||
let box = result.getBBox();
|
||||
|
||||
result.transform(Snap.matrix()
|
||||
.translate(10 - box.x, 10 - box.y));
|
||||
|
||||
@@ -10,7 +10,7 @@ export default {
|
||||
_render() {
|
||||
return this.renderLabel(['\u201c', this.literal, '\u201d'])
|
||||
.then(label => {
|
||||
var spans = label.selectAll('tspan');
|
||||
let spans = label.selectAll('tspan');
|
||||
|
||||
// The quote marks get some styling to lighten their color so they are
|
||||
// distinct from the actual literal value.
|
||||
|
||||
@@ -29,7 +29,7 @@ export default {
|
||||
_render() {
|
||||
return this.content.render(this.container.group())
|
||||
.then(() => {
|
||||
var box, paths;
|
||||
let box, paths;
|
||||
|
||||
// Contents must be transformed based on the repeat that is applied.
|
||||
this.content.transform(this.repeat.contentPosition);
|
||||
|
||||
@@ -121,7 +121,7 @@ export default class Node {
|
||||
|
||||
return this.deferredStep()
|
||||
.then(() => {
|
||||
var box = text.getBBox(),
|
||||
let box = text.getBBox(),
|
||||
margin = 5;
|
||||
|
||||
text.transform(Snap.matrix()
|
||||
@@ -161,7 +161,7 @@ export default class Node {
|
||||
|
||||
return this.deferredStep()
|
||||
.then(() => {
|
||||
var labelBox = label.getBBox(),
|
||||
let labelBox = label.getBBox(),
|
||||
contentBox = content.getBBox();
|
||||
|
||||
label.transform(Snap.matrix()
|
||||
|
||||
@@ -19,7 +19,7 @@ export default {
|
||||
return match.render(matchContainer.group());
|
||||
}))
|
||||
.then(() => {
|
||||
var containerBox,
|
||||
let containerBox,
|
||||
paths;
|
||||
|
||||
// Space matches vertically in the match container.
|
||||
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
// Render the content of the regular expression.
|
||||
return this.regexp.render(this.container.group())
|
||||
.then(() => {
|
||||
var box;
|
||||
let box;
|
||||
|
||||
// Move rendered regexp to account for flag label and to allow for
|
||||
// decorative elements.
|
||||
|
||||
Reference in New Issue
Block a user