[lint] convert to single quotes
Paul O’Shannessy committed
Dec 25, 2014 at 14:15 UTC
df2ddc5dfa8852df81566f4ffef9a18d667b2817
7 files changed
+11
-11
src/browser/ReactBrowserEventEmitter.js
+1
-1
@@ -126,7 +126,7 @@ var topEventMapping = {
126
/**
127
* To ensure no conflicts with other potential React instances on the page
128
*/
129
-var topListenersIDKey = "_reactListenersID" + String(Math.random()).slice(2);
129
+var topListenersIDKey = '_reactListenersID' + String(Math.random()).slice(2);
130
131
function getListeningForDocument(mountAt) {
132
// In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
src/browser/eventPlugins/AnalyticsEventPluginFactory.js
+1
-1
@@ -152,7 +152,7 @@ function extractEvents(
152
return null;
153
}
154
155
- var analyticsEventsArr = analyticsEventsStr.split(",");
155
+ var analyticsEventsArr = analyticsEventsStr.split(',');
156
if (!analyticsData.hasOwnProperty(analyticsID)) {
157
initAnalyticsDataForID(analyticsID, analyticsEventsArr);
158
}
src/browser/ui/dom/Danger.js
+1
-1
@@ -124,7 +124,7 @@ var Danger = {
124
125
} else if (__DEV__) {
126
console.error(
127
- "Danger: Discarding unexpected node:",
127
+ 'Danger: Discarding unexpected node:',
128
renderNode
129
);
130
}
src/core/ReactCompositeComponent.js
+1
-1
@@ -746,7 +746,7 @@ var ReactCompositeComponentMixin = assign({},
746
inst.shouldComponentUpdate(nextProps, nextState, nextContext);
747
748
if (__DEV__) {
749
- if (typeof shouldUpdate === "undefined") {
749
+ if (typeof shouldUpdate === 'undefined') {
750
console.warn(
751
(this.getName() || 'ReactCompositeComponent') +
752
'.shouldComponentUpdate(): Returned undefined instead of a ' +
src/core/ReactUpdates.js
+1
-1
@@ -192,7 +192,7 @@ flushBatchedUpdates = ReactPerf.measure(
192
*/
193
function enqueueUpdate(component, callback) {
194
invariant(
195
- !callback || typeof callback === "function",
195
+ !callback || typeof callback === 'function',
196
'enqueueUpdate(...): You called `setProps`, `replaceProps`, ' +
197
'`setState`, `replaceState`, or `forceUpdate` with a callback that ' +
198
'isn\'t callable.'
src/utils/CallbackQueue.js
+1
-1
@@ -60,7 +60,7 @@ assign(CallbackQueue.prototype, {
60
if (callbacks) {
61
invariant(
62
callbacks.length === contexts.length,
63
- "Mismatched list of contexts in callback queue"
63
+ 'Mismatched list of contexts in callback queue'
64
);
65
this._callbacks = null;
66
this._contexts = null;
src/utils/escapeTextForBrowser.js
+5
-5
@@ -13,11 +13,11 @@
13
'use strict';
14
15
var ESCAPE_LOOKUP = {
16
- "&": "&",
17
- ">": ">",
18
- "<": "<",
19
- "\"": """,
20
- "'": "'"
16
+ '&': '&',
17
+ '>': '>',
18
+ '<': '<',
19
+ '"': '"',
20
+ '\'': '''
21
};
22
23
var ESCAPE_REGEX = /[&><"']/g;