-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f3ec81
commit e53fd87
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |