Skip to content

Commit

Permalink
Apply args when calling identity
Browse files Browse the repository at this point in the history
  • Loading branch information
tornqvist authored and yoshuawuyts committed Mar 7, 2018
1 parent 2645a5f commit 4765b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ChooComponentCache.prototype.render = function (Component) {
}

assert.equal(typeof Component.identity, 'function', 'ChooComponentCache.render: Component.identity should be type function')
var id = Component.identity(args)
var id = Component.identity.apply(Component, args)
assert.equal(typeof id, 'string', 'ChooComponentCache.render: Component.identity should return type string')

var el = this.cache[id]
Expand Down

0 comments on commit 4765b90

Please sign in to comment.