FIX: ES5 file shouldn't have `const` in it

This commit is contained in:
Robin Ward 2016-05-09 17:05:07 -04:00
parent 49a6d0b789
commit 3d392670a7
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ const TITLE_SUBS = {
daily: 'today',
};
export default Ember.Handlebars.makeBoundHelper(function (period, options) {
export default Ember.Helper.helper(function (period, options) {
const title = I18n.t('filters.top.' + (TITLE_SUBS[period] || 'this_week'));
if (options.hash.showDateRange) {
var dateString = "";

View File

@ -70,10 +70,10 @@
function buildPath(blk, args) {
const result = { type: "PathExpression",
data: false,
depth: blk.path.depth,
loc: blk.path.loc };
var result = { type: "PathExpression",
data: false,
depth: blk.path.depth,
loc: blk.path.loc };
// Server side precompile doesn't have jquery.extend
Object.keys(args).forEach(function (a) {
@ -99,7 +99,7 @@
// This allows us to use the same syntax in all templates
visitor.BlockStatement = function(block) {
if (block.path.original === 'each' && block.params.length === 1) {
const paramName = block.program.blockParams[0];
var paramName = block.program.blockParams[0];
block.params = [ buildPath(block, { original: paramName }),
{ type: "CommentStatement", value: "in" },
block.params[0] ];