fix helper

This commit is contained in:
Sam 2014-12-11 11:59:11 +11:00 committed by Robin Ward
parent f8f1611035
commit 51c4cb3de1
1 changed files with 7 additions and 6 deletions

View File

@ -97,12 +97,13 @@
};
RawHandlebars.get = function(_this, property, options){
var val;
if (options.types && options.data.view && options.types[0] === "ID") {
val = options.data.view.getStream(property).value();
} else {
val = Em.get(_this, property);
var val = property;
if (options.types[0] === "ID"){
if (options.types && options.data.view) {
val = options.data.view.getStream(property).value();
} else {
val = Em.get(_this, property);
}
}
return val;