Skip to content

Commit

Permalink
Remove assign polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Feb 26, 2017
1 parent 9ded41d commit afda6f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/applyMixin.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assign, chain } from './util'
import { chain } from './util'
import invariant from 'invariant'
import ReduxComponent from './ReduxComponent'

Expand All @@ -16,7 +16,7 @@ concatKeyHandler = (spec, mixin, key, val) ->

assignKeyHandler = (spec, mixin, key, val) ->
invariant(typeof(val) is 'object', "mixin key `#{key}` must be an object")
spec[key] = assign(spec[key] or {}, val)
spec[key] = Object.assign(spec[key] or {}, val)

bannedKeyHandler = (spec, mixin, key, val) ->
invariant(false, "mixin key `#{key}` would shadow a documented key on the ReduxComponent instance, and is therefore forbidden")
Expand Down
3 changes: 0 additions & 3 deletions src/util.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
export assign = (dst, src) ->
(if src.hasOwnProperty(k) then dst[k] = src[k]) for k of src; dst

export chain = (one, two) -> -> one.apply(@, arguments); two.apply(@, arguments)

export get = (object, path) ->
Expand Down

0 comments on commit afda6f5

Please sign in to comment.