Skip to content

Commit

Permalink
Merge pull request #253 from rwjblue/remove-safe-string-usage
Browse files Browse the repository at this point in the history
Remove usage of Ember.Handlebars.SafeString.
  • Loading branch information
Turbo87 authored Dec 5, 2017
2 parents 7390be0 + ccd60e7 commit 5cca791
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 5cca791

Please sign in to comment.