Skip to content

Commit

Permalink
Remove usage of Ember.Handlebars.SafeString.
Browse files Browse the repository at this point in the history
It has been long deprecated, and is removed in Ember 3.0 (current canary
builds).
  • Loading branch information
rwjblue committed Dec 5, 2017
1 parent 7390be0 commit ccd60e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/legacy-0-6-x/test-module-for-component-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import qunitModuleFor from '../../helpers/qunit-module-for';
import hasjQuery from '../../helpers/has-jquery';
import hbs from 'htmlbars-inline-precompile';
import { fireEvent, focus, blur } from '../../helpers/events';
import { htmlSafe } from '@ember/string';

var Service = EmberService || EmberObject;

Expand All @@ -34,7 +35,7 @@ var PrettyColor = Component.extend({
classNames: ['pretty-color'],
attributeBindings: ['style'],
style: computed('name', function() {
return new Ember.Handlebars.SafeString('color: ' + this.get('name') + ';');
return htmlSafe('color: ' + this.get('name') + ';');
}),

click() {
Expand Down

0 comments on commit ccd60e7

Please sign in to comment.