mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Always call callback in component context
This brings these other call sites in line with line 67 of ReactUpdates.js: callbacks[j].call(component);
This commit is contained in:
parent
ad6a982cd0
commit
1825f30353
|
|
@ -318,7 +318,7 @@ var ReactMount = {
|
|||
container,
|
||||
shouldReuseMarkup
|
||||
);
|
||||
callback && callback();
|
||||
callback && callback.call(component);
|
||||
return component;
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ function enqueueUpdate(component, callback) {
|
|||
|
||||
if (!batchingStrategy.isBatchingUpdates) {
|
||||
component.performUpdateIfNecessary();
|
||||
callback && callback();
|
||||
callback && callback.call(component);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user