Fixing basic jshint issues
This commit is contained in:
parent
87d4f9627b
commit
6eda91a541
@ -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,
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user