Skip to content

Commit

Permalink
Merge pull request #69 from alexander-alvarez/number-polyfills
Browse files Browse the repository at this point in the history
Creating Number to polyfill
  • Loading branch information
offirgolan authored Mar 29, 2017
2 parents d7ef39f + 2ede785 commit 9529fa9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions addon/components/scroll-content-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Ember from 'ember';
import layout from '../templates/components/scroll-content-element';
import DomMixin from 'ember-lifeline/mixins/dom';
import {styleify} from '../util/css';
import Number from '../util/number';

const {
computed,
Expand Down
7 changes: 7 additions & 0 deletions addon/util/number.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Polyfills for `Number` global.
*/
export default {
isNaN: Number.isNaN || window.isNaN,
parseInt: Number.parseInt || window.parseInt
};

0 comments on commit 9529fa9

Please sign in to comment.