Skip to content

Commit

Permalink
use proper object
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Feb 6, 2019
1 parent 9f3ec81 commit e53fd87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion addon/helpers/div-icon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { helper } from '@ember/component/helper';
import { assign } from '@ember/polyfills';
const isFastBoot = typeof FastBoot !== 'undefined';
/* global L */

export const divIcon = isFastBoot ? function() {} : function divIcon(_, hash) {
return L.divIcon(hash);
// https://github.com/emberjs/ember.js/issues/14668
let options = assign({}, hash);
return L.divIcon(options);
};

export default helper(divIcon);
5 changes: 4 additions & 1 deletion addon/helpers/icon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { helper } from '@ember/component/helper';
import { assign } from '@ember/polyfills';
const isFastBoot = typeof FastBoot !== 'undefined';
/* global L */

export const icon = isFastBoot ? function() {} : function icon(_, hash) {
return L.icon(hash);
// https://github.com/emberjs/ember.js/issues/14668
let options = assign({}, hash);
return L.icon(options);
};

export default helper(icon);

0 comments on commit e53fd87

Please sign in to comment.