Skip to content

Commit 3a2baab

Browse files
committed
Apply args when calling identity
1 parent a34e32d commit 3a2baab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

component/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ChooComponentCache.prototype.render = function (Component) {
2727
}
2828

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

3333
var el = this.cache[id]

0 commit comments

Comments
 (0)