Skip to content

Commit

Permalink
Merge pull request #504 from a2intl/master
Browse files Browse the repository at this point in the history
fix issue #261 by localizing key per loop in extendNative
  • Loading branch information
FranDias authored Nov 4, 2020
2 parents 4afddfb + 5f870e7 commit bca8c85
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pace.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ extendNative = (to, from) ->
if not to[key]? and typeof from[key] isnt 'function'
if typeof Object.defineProperty is 'function'
Object.defineProperty(to, key, {
get: ->
return from::[key];
get: do(key) ->
-> return from::[key];
,
configurable: true,
enumerable: true })
Expand Down
12 changes: 8 additions & 4 deletions pace.js

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

Loading

0 comments on commit bca8c85

Please sign in to comment.