fix GLOBAL_VISITOR_PROPS usage

This commit is contained in:
Sebastian McKenzie 2015-11-08 06:14:23 -08:00
parent c8901cf98d
commit 6c2cc17d1d

View File

@ -82,7 +82,7 @@ export default class Plugin extends Store {
}
normaliseVisitor(visitor: Object): Object {
for (let key of visitor) {
for (let key of GLOBAL_VISITOR_PROPS) {
if (visitor[key]) {
throw new Error(`Plugins aren't allowed to specify catch-all enter/exit handlers. Please target individual nodes.`);
}