-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch- decouple svg.js from app.js and have it as a separate file
- Loading branch information
Showing
4 changed files
with
28 additions
and
27 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
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,15 +1 @@ | ||
import { inlineSvg } from 'ember-inline-svg/helpers/inline-svg'; | ||
import SVGs from '../svgs'; | ||
|
||
let helper; | ||
if (Ember.Helper && Ember.Helper.helper) { | ||
helper = Ember.Helper.helper(function([path], options) { | ||
return inlineSvg(SVGs, path, options); | ||
}); | ||
} else { | ||
helper = Ember.Handlebars.makeBoundHelper(function(path, options) { | ||
return inlineSvg(SVGs, path, options.hash || {}); | ||
}); | ||
} | ||
|
||
export default helper; | ||
export { default } from 'ember-inline-svg/helpers/inline-svg'; |
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
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