From d944ad22dbe3c582a491ccf621b6144e8cdf03c3 Mon Sep 17 00:00:00 2001 From: Dan Harbin Date: Fri, 24 Jan 2014 16:36:10 -0600 Subject: [PATCH] Make swig compile on IE8 --- lib/filters.js | 2 +- lib/tags/index.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/filters.js b/lib/filters.js index 93b13b5b..7637fb8d 100644 --- a/lib/filters.js +++ b/lib/filters.js @@ -116,7 +116,7 @@ exports.date = function (input, format, offset, abbr) { * @param {*} def Value to return if `input` is `undefined`, `null`, or `false`. * @return {*} `input` or `def` value. */ -exports.default = function (input, def) { +exports["default"] = function (input, def) { return (typeof input !== 'undefined' && (input || typeof input === 'number')) ? input : def; }; diff --git a/lib/tags/index.js b/lib/tags/index.js index f2c0910d..d9e079a6 100644 --- a/lib/tags/index.js +++ b/lib/tags/index.js @@ -1,13 +1,13 @@ exports.autoescape = require('./autoescape'); exports.block = require('./block'); -exports.else = require('./else'); +exports["else"] = require('./else'); exports.elseif = require('./elseif'); exports.elif = exports.elseif; -exports.extends = require('./extends'); +exports["extends"] = require('./extends'); exports.filter = require('./filter'); -exports.for = require('./for'); -exports.if = require('./if'); -exports.import = require('./import'); +exports["for"] = require('./for'); +exports["if"] = require('./if'); +exports["import"] = require('./import'); exports.include = require('./include'); exports.macro = require('./macro'); exports.parent = require('./parent');