(registrationName, dependencies)
| 162 | registerDirectEvent(registrationName + 'Capture', dependencies); |
| 163 | } |
| 164 | function registerDirectEvent(registrationName, dependencies) { |
| 165 | { |
| 166 | if (registrationNameDependencies[registrationName]) { |
| 167 | error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | registrationNameDependencies[registrationName] = dependencies; |
| 172 | |
| 173 | { |
| 174 | var lowerCasedName = registrationName.toLowerCase(); |
| 175 | possibleRegistrationNames[lowerCasedName] = registrationName; |
| 176 | |
| 177 | if (registrationName === 'onDoubleClick') { |
| 178 | possibleRegistrationNames.ondblclick = registrationName; |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | for (var i = 0; i < dependencies.length; i++) { |
| 183 | allNativeEvents.add(dependencies[i]); |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined'); |
| 188 |
no test coverage detected
searching dependent graphs…