Document lookupData

This commit is contained in:
Yehuda Katz
2012-07-05 23:10:39 -07:00
parent 659be5a690
commit 36b242a710
+6
View File
@@ -653,6 +653,12 @@ Handlebars.JavaScriptCompiler = function() {};
});
},
// [lookupData]
//
// On stack, before: ...
// On stack, after: data[id], ...
//
// Push the result of looking up `id` on the current data
lookupData: function(id) {
this.pushStack(this.nameLookup('data', id, 'data'));
},