diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index f48f8d410..000000000 --- a/.jshintrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "undef": true, - "esversion": 6 -} diff --git a/packages/caching-html-compiler/caching-html-compiler.js b/packages/caching-html-compiler/caching-html-compiler.js index 83ba2b1c8..c6b714e4a 100644 --- a/packages/caching-html-compiler/caching-html-compiler.js +++ b/packages/caching-html-compiler/caching-html-compiler.js @@ -1,5 +1,4 @@ import isEmpty from 'lodash.isempty'; -import { CachingCompiler } from 'meteor/caching-compiler'; const path = Plugin.path; @@ -117,14 +116,14 @@ CachingHtmlCompiler = class CachingHtmlCompiler extends CachingCompiler { // Add JavaScript code to set attributes on body allJavaScript += `Meteor.startup(function() { - const attrs = ${JSON.stringify(compileResult.bodyAttrs)}; - for (let prop in attrs) { + var attrs = ${JSON.stringify(compileResult.bodyAttrs)}; + for (var prop in attrs) { document.body.setAttribute(prop, attrs[prop]); } }); `; } - + if (allJavaScript) { const filePath = inputFile.getPathInPackage(); @@ -145,4 +144,4 @@ CachingHtmlCompiler = class CachingHtmlCompiler extends CachingCompiler { }); } } -}; +} diff --git a/packages/caching-html-compiler/package.js b/packages/caching-html-compiler/package.js index be1ac5a3b..a1eb91e66 100644 --- a/packages/caching-html-compiler/package.js +++ b/packages/caching-html-compiler/package.js @@ -1,7 +1,7 @@ Package.describe({ name: 'caching-html-compiler', summary: "Pluggable class for compiling HTML into templates", - version: '1.2.2', + version: '1.2.1', git: 'https://github.com/meteor/blaze.git' }); @@ -12,13 +12,13 @@ Npm.depends({ Package.onUse(function(api) { api.use([ 'caching-compiler@1.2.2', - 'ecmascript@0.16.7' + 'ecmascript@0.15.1' ]); api.export('CachingHtmlCompiler', 'server'); api.use([ - 'templating-tools@1.2.2' + 'templating-tools@1.2.1' ]); api.addFiles([