Skip to content

Commit

Permalink
Fix IE issue.
Browse files Browse the repository at this point in the history
Can not rely on window.toString to be callable. (It isn't in IE)
  • Loading branch information
gregleaver committed May 17, 2012
1 parent 5696561 commit fa49bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/jquery-currency-input.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/jquery-currency-input.coffee
Expand Up @@ -16,7 +16,7 @@ $ = jQuery

# From _.isFinite
isNumber = (obj) ->
(toString.call obj) == '[object Number]' and isFinite(obj)
(Object.prototype.toString.call obj) == '[object Number]' and isFinite(obj)

toNumber = (str) ->
str = str.toString().replace /[$,\s]/g, ''
Expand Down

0 comments on commit fa49bca

Please sign in to comment.