Revert "FIX: remove scrolling jankiness"

This reverts commit b1a799b5260e0a36b6f0e1bab5eb1047ea94a5ea.
Was not working properly on mobile...
This commit is contained in:
Régis Hanol
2018-03-24 03:53:28 +01:00
parent c5c1d8e180
commit 9d6d8631ad
4 changed files with 46 additions and 25 deletions

View File

@ -18,15 +18,13 @@ RawHandlebars.helpers['get'] = function(context, options) {
var firstContext = options.contexts[0];
var val = firstContext[context];
if (context.indexOf('controller.') === 0) {
context = context.slice(context.indexOf('.') + 1);
if (context.indexOf('controller') === 0) {
context = context.replace(/^controller\./, '');
}
if (val && val.isDescriptor) {
return Em.get(firstContext, context);
}
return val === undefined ? Em.get(firstContext, context) : val;
if (val && val.isDescriptor) { return Em.get(firstContext, context); }
val = val === undefined ? Em.get(firstContext, context): val;
return val;
};
// adds compatability so this works with stringParams