Skip to content

Commit

Permalink
error message updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jairodemorais committed Jul 4, 2012
1 parent 27c4430 commit 4441062
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/dust-helpers.js
Expand Up @@ -102,22 +102,19 @@ var helpers = {
}
// no condition
else {
_console.log( "No expression given!" );
_console.log( "NO condition given in the if helper!" );
}
return chunk;
},
select: function(chunk, context, bodies, params) {
if( params && params.key){
var key = params.key;
key = this.tap(key, chunk, context);
if( key ){
return chunk.render(bodies.block, context.push({ isSelect: true, isResolved: false, value: context.get(key) }));
}
return chunk.render(bodies.block, context.push({ isSelect: true, isResolved: false, value: context.get(params.key) }));
return chunk.render(bodies.block, context.push({ isSelect: true, isResolved: false, value: context.get(key) }));
}
// no key
else {
_console.log( "No expression given!" );
_console.log( "No key given for the select tag!" );
}
return chunk;
},
Expand Down

0 comments on commit 4441062

Please sign in to comment.