summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-05-25 12:27:31 -0500
committerkpdecker <kpdecker@gmail.com>2013-05-25 12:27:31 -0500
commit4d95d58e157aa5ca212a1d1a5871eb88d7ad814e (patch)
tree1a725c77840e9efc89ea749e8b1dc2436cfafd51
parent47e0aa795abeca7ae6976be4bca9881f1432f951 (diff)
downloadhandlebars.js-4d95d58e157aa5ca212a1d1a5871eb88d7ad814e.zip
handlebars.js-4d95d58e157aa5ca212a1d1a5871eb88d7ad814e.tar.gz
handlebars.js-4d95d58e157aa5ca212a1d1a5871eb88d7ad814e.tar.bz2
Rebuild
-rw-r--r--dist/handlebars.js12
-rw-r--r--dist/handlebars.runtime.js12
2 files changed, 12 insertions, 12 deletions
diff --git a/dist/handlebars.js b/dist/handlebars.js
index 93f862d..1f60ae7 100644
--- a/dist/handlebars.js
+++ b/dist/handlebars.js
@@ -152,19 +152,19 @@ Handlebars.registerHelper('each', function(context, options) {
return ret;
});
-Handlebars.registerHelper('if', function(context, options) {
- var type = toString.call(context);
- if(type === functionType) { context = context.call(this); }
+Handlebars.registerHelper('if', function(conditional, options) {
+ var type = toString.call(conditional);
+ if(type === functionType) { conditional = conditional.call(this); }
- if(!context || Handlebars.Utils.isEmpty(context)) {
+ if(!conditional || Handlebars.Utils.isEmpty(conditional)) {
return options.inverse(this);
} else {
return options.fn(this);
}
});
-Handlebars.registerHelper('unless', function(context, options) {
- return Handlebars.helpers['if'].call(this, context, {fn: options.inverse, inverse: options.fn});
+Handlebars.registerHelper('unless', function(conditional, options) {
+ return Handlebars.helpers['if'].call(this, conditional, {fn: options.inverse, inverse: options.fn});
});
Handlebars.registerHelper('with', function(context, options) {
diff --git a/dist/handlebars.runtime.js b/dist/handlebars.runtime.js
index 7dd40f6..8744aa7 100644
--- a/dist/handlebars.runtime.js
+++ b/dist/handlebars.runtime.js
@@ -152,19 +152,19 @@ Handlebars.registerHelper('each', function(context, options) {
return ret;
});
-Handlebars.registerHelper('if', function(context, options) {
- var type = toString.call(context);
- if(type === functionType) { context = context.call(this); }
+Handlebars.registerHelper('if', function(conditional, options) {
+ var type = toString.call(conditional);
+ if(type === functionType) { conditional = conditional.call(this); }
- if(!context || Handlebars.Utils.isEmpty(context)) {
+ if(!conditional || Handlebars.Utils.isEmpty(conditional)) {
return options.inverse(this);
} else {
return options.fn(this);
}
});
-Handlebars.registerHelper('unless', function(context, options) {
- return Handlebars.helpers['if'].call(this, context, {fn: options.inverse, inverse: options.fn});
+Handlebars.registerHelper('unless', function(conditional, options) {
+ return Handlebars.helpers['if'].call(this, conditional, {fn: options.inverse, inverse: options.fn});
});
Handlebars.registerHelper('with', function(context, options) {