Skip to content

Commit

Permalink
use literal instead of lookup/call
Browse files Browse the repository at this point in the history
  • Loading branch information
geddski committed Aug 7, 2012
1 parent 7acf001 commit 4377ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/visitor/evaluator.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Evaluator.prototype.visitReturn = function(ret){
Evaluator.prototype.visitMedia = function(media){
media.block = this.visit(media.block);
var query = this.lookup(media.val);
if(query) media.val = this.lookup("unquote").fn.call(this,query.nodes[0]);
if (query) media.val = new nodes.Literal(query.nodes[0].string);
return media;
};

Expand Down

0 comments on commit 4377ce6

Please sign in to comment.