@samitouri / QOS-React-2 / commits / b321925cfa

Listen to encrypted event, not onencrypted

Paul O’Shannessy committed Jul 31, 2015 at 16:21 UTC b321925cfaf1d7998f8569595eb00fcfe62a49b9
4 files changed +11 -11
src/renderers/dom/client/ReactBrowserEventEmitter.js
+1 -1
@@ -107,6 +107,7 @@ var topEventMapping = {
107 topDrop: 'drop',
108 topDurationChange: 'durationchange',
109 topEmptied: 'emptied',
110 + topEncrypted: 'encrypted',
111 topEnded: 'ended',
112 topError: 'error',
113 topFocus: 'focus',
@@ -122,7 +123,6 @@ var topEventMapping = {
123 topMouseOut: 'mouseout',
124 topMouseOver: 'mouseover',
125 topMouseUp: 'mouseup',
125 - topOnEncrypted: 'onencrypted',
126 topPause: 'pause',
127 topPaste: 'paste',
128 topPlay: 'play',
src/renderers/dom/client/eventPlugins/SimpleEventPlugin.js
+8 -8
@@ -149,6 +149,12 @@ var eventTypes = {
149 captured: keyOf({onEmptiedCapture: true}),
150 },
151 },
152 + encrypted: {
153 + phasedRegistrationNames: {
154 + bubbled: keyOf({onEncrypted: true}),
155 + captured: keyOf({onEncryptedCapture: true}),
156 + },
157 + },
158 ended: {
159 phasedRegistrationNames: {
160 bubbled: keyOf({onEnded: true}),
@@ -247,12 +253,6 @@ var eventTypes = {
253 captured: keyOf({onMouseUpCapture: true}),
254 },
255 },
250 - onEncrypted: {
251 - phasedRegistrationNames: {
252 - bubbled: keyOf({onEncrypted: true}),
253 - captured: keyOf({onEncryptedCapture: true}),
254 - },
255 - },
256 paste: {
257 phasedRegistrationNames: {
258 bubbled: keyOf({onPaste: true}),
@@ -401,6 +401,7 @@ var topLevelEventsToDispatchConfig = {
401 topDrop: eventTypes.drop,
402 topDurationChange: eventTypes.durationChange,
403 topEmptied: eventTypes.emptied,
404 + topEncrypted: eventTypes.encrypted,
405 topEnded: eventTypes.ended,
406 topError: eventTypes.error,
407 topFocus: eventTypes.focus,
@@ -417,7 +418,6 @@ var topLevelEventsToDispatchConfig = {
418 topMouseOut: eventTypes.mouseOut,
419 topMouseOver: eventTypes.mouseOver,
420 topMouseUp: eventTypes.mouseUp,
420 - topOnEncrypted: eventTypes.onEncrypted,
421 topPause: eventTypes.pause,
422 topPaste: eventTypes.paste,
423 topPlay: eventTypes.play,
@@ -501,6 +501,7 @@ var SimpleEventPlugin = {
501 case topLevelTypes.topCanPlayThrough:
502 case topLevelTypes.topDurationChange:
503 case topLevelTypes.topEmptied:
504 + case topLevelTypes.topEncrypted:
505 case topLevelTypes.topEnded:
506 case topLevelTypes.topError:
507 case topLevelTypes.topInput:
@@ -508,7 +509,6 @@ var SimpleEventPlugin = {
509 case topLevelTypes.topLoadedData:
510 case topLevelTypes.topLoadedMetadata:
511 case topLevelTypes.topLoadStart:
511 - case topLevelTypes.topOnEncrypted:
512 case topLevelTypes.topPause:
513 case topLevelTypes.topPlay:
514 case topLevelTypes.topPlaying:
src/renderers/dom/shared/ReactDOMComponent.js
+1 -1
@@ -309,12 +309,12 @@ var mediaEvents = {
309 topCanPlayThrough: 'canplaythrough',
310 topDurationChange: 'durationchange',
311 topEmptied: 'emptied',
312 + topEncrypted: 'encrypted',
313 topEnded: 'ended',
314 topError: 'error',
315 topLoadedData: 'loadeddata',
316 topLoadedMetadata: 'loadedmetadata',
317 topLoadStart: 'loadstart',
317 - topOnEncrypted: 'onencrypted',
318 topPause: 'pause',
319 topPlay: 'play',
320 topPlaying: 'playing',
src/renderers/shared/event/EventConstants.js
+1 -1
@@ -42,6 +42,7 @@ var topLevelTypes = keyMirror({
42 topDrop: null,
43 topDurationChange: null,
44 topEmptied: null,
45 + topEncrypted: null,
46 topEnded: null,
47 topError: null,
48 topFocus: null,
@@ -58,7 +59,6 @@ var topLevelTypes = keyMirror({
59 topMouseOut: null,
60 topMouseOver: null,
61 topMouseUp: null,
61 - topOnEncrypted: null,
62 topPaste: null,
63 topPause: null,
64 topPlay: null,