fix helper
This commit is contained in:
parent
f8f1611035
commit
51c4cb3de1
|
@ -97,13 +97,14 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
RawHandlebars.get = function(_this, property, options){
|
RawHandlebars.get = function(_this, property, options){
|
||||||
var val;
|
var val = property;
|
||||||
|
if (options.types[0] === "ID"){
|
||||||
if (options.types && options.data.view && options.types[0] === "ID") {
|
if (options.types && options.data.view) {
|
||||||
val = options.data.view.getStream(property).value();
|
val = options.data.view.getStream(property).value();
|
||||||
} else {
|
} else {
|
||||||
val = Em.get(_this, property);
|
val = Em.get(_this, property);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue