@samitouri / QOS-React-2 / commits / 9ad0e1d846

Update BeforeInputEventPlugin.js

Isaac Salier-Hellendag committed Dec 10, 2014 at 11:36 UTC 9ad0e1d846a4fe51f2397333d1df3e0b72d28067
1 file changed +3 -3
src/browser/eventPlugins/BeforeInputEventPlugin.js
+3 -3
@@ -34,14 +34,14 @@ if (ExecutionEnvironment.canUseDOM && 'documentMode' in document) {
34 documentMode = document.documentMode;
35 }
36
37 -// Webkit and Presto offer a very useful `textInput` event that can be used to
37 +// Webkit offers a very useful `textInput` event that can be used to
38 // directly represent `beforeInput`. The IE `textinput` event is not as
39 // useful, so we don't use it.
40 var canUseTextInputEvent = (
41 ExecutionEnvironment.canUseDOM &&
42 'TextEvent' in window &&
43 !documentMode &&
44 - !isOldPresto()
44 + !isPresto()
45 );
46
47 // In IE9+, we have access to composition events, but the data supplied
@@ -59,7 +59,7 @@ var useFallbackCompositionData = (
59 * Opera <= 12 includes TextEvent in window, but does not fire
60 * text input events. Rely on keypress instead.
61 */
62 -function isOldPresto() {
62 +function isPresto() {
63 var opera = window.opera;
64 return (
65 typeof opera === 'object' &&