FIX: Can't seem to use ES6 in this file

This commit is contained in:
Robin Ward 2016-12-21 16:50:57 -05:00
parent 89bdca9c8c
commit 31cda7b372

View File

@ -1,5 +1,3 @@
import deprecated from 'discourse-common/lib/deprecated';
// This is a mechanism for quickly rendering templates which is Ember aware
// templates are highly compatible with Ember so you don't need to worry about calling "get"
// and computed properties function, additionally it uses stringParams like Ember does
@ -21,7 +19,6 @@ RawHandlebars.helpers['get'] = function(context, options) {
var val = firstContext[context];
if (context.indexOf('controller') === 0) {
deprecated("Don't `use controller` in raw templates");
context = context.replace(/^controller\./, '');
}