Fixing basic jshint issues

This commit is contained in:
Tom MacWright 2013-01-03 16:29:22 -05:00
parent 87d4f9627b
commit 6eda91a541
3 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ tree.Call.prototype = {
if (this.name in tree.functions) {
if (tree.functions[this.name].length === args.length) {
var val = tree.functions[this.name].apply(tree.functions, args);
if (val == null) {
if (val === null) {
env.error({
message: 'incorrect arguments given to ' + this.name + '()',
index: this.index,

View File

@ -21,9 +21,9 @@ var ops = {
'=~': ['.match(', 'string', ')']
};
tree.Filter.prototype['ev'] = function(env) {
this.key = this.key['ev'](env);
this.val = this.val['ev'](env);
tree.Filter.prototype.ev = function(env) {
this.key = this.key.ev(env);
this.val = this.val.ev(env);
return this;
};

View File

@ -110,9 +110,9 @@ tree.Rule.prototype.toXML = function(env, content, sep, format) {
};
// TODO: Rule ev chain should add fontsets to env.frames
tree.Rule.prototype['ev'] = function(context) {
tree.Rule.prototype.ev = function(context) {
return new tree.Rule(this.name,
this.value['ev'](context),
this.value.ev(context),
this.index,
this.filename);
};