From 9d9ef31f7b360dee9844af8386610c3a8944fdff Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Fri, 24 Nov 2017 01:42:09 -0800 Subject: [PATCH] Make Styler strict --- src/Styler.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Styler.js b/src/Styler.js index fe711fc..695077c 100644 --- a/src/Styler.js +++ b/src/Styler.js @@ -8,11 +8,11 @@ Compiles layer filter instructions into a chain of true/false returning anonymous functions to improve rendering speed compared to realtime parsing. */ -var Styler; +'use strict'; const fs = require('fs'); -module.exports = class Styler { +class Styler { constructor(file) { this.styleById = {}; this.styleByLayer = {}; @@ -132,3 +132,5 @@ module.exports = class Styler { } } } + +module.exports = Styler;