FIX: Can't seem to use ES6 in this file
This commit is contained in:
parent
89bdca9c8c
commit
31cda7b372
|
@ -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\./, '');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue