fix GLOBAL_VISITOR_PROPS usage
This commit is contained in:
parent
c8901cf98d
commit
6c2cc17d1d
@ -82,7 +82,7 @@ export default class Plugin extends Store {
|
|||||||
}
|
}
|
||||||
|
|
||||||
normaliseVisitor(visitor: Object): Object {
|
normaliseVisitor(visitor: Object): Object {
|
||||||
for (let key of visitor) {
|
for (let key of GLOBAL_VISITOR_PROPS) {
|
||||||
if (visitor[key]) {
|
if (visitor[key]) {
|
||||||
throw new Error(`Plugins aren't allowed to specify catch-all enter/exit handlers. Please target individual nodes.`);
|
throw new Error(`Plugins aren't allowed to specify catch-all enter/exit handlers. Please target individual nodes.`);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user