This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SimpleEventPlugin = require('react/lib/SimpleEventPlugin'); | |
const SyntheticUIEvent = require('react/lib/SyntheticUIEvent'); | |
const EventPropagators = require('react/lib/EventPropagators'); | |
const ReactInjection = require('react/lib/ReactInjection'); | |
const EventConstants = require('react/lib/EventConstants'); | |
const EventPlugin = names => names.reduce((plugin, name) => { | |
const topLevelType = `top${name}`; | |
EventConstants.topLevelTypes[topLevelType]= topLevelType; | |
plugin.eventTypes[name] = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var EventSystem = (function() { | |
var self = this; | |
self.queue = {}; | |
return { | |
publish: function (event, data) { | |
var queue = self.queue[event]; | |
if (typeof queue === 'undefined') { |