[lint] convert to single quotes

This commit is contained in:
Paul O’Shannessy
2015-01-13 15:26:33 -08:00
parent df64a67b7f
commit df2ddc5dfa
7 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ var topEventMapping = {
/**
* To ensure no conflicts with other potential React instances on the page
*/
var topListenersIDKey = "_reactListenersID" + String(Math.random()).slice(2);
var topListenersIDKey = '_reactListenersID' + String(Math.random()).slice(2);
function getListeningForDocument(mountAt) {
// In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
@@ -152,7 +152,7 @@ function extractEvents(
return null;
}
var analyticsEventsArr = analyticsEventsStr.split(",");
var analyticsEventsArr = analyticsEventsStr.split(',');
if (!analyticsData.hasOwnProperty(analyticsID)) {
initAnalyticsDataForID(analyticsID, analyticsEventsArr);
}
+1 -1
View File
@@ -124,7 +124,7 @@ var Danger = {
} else if (__DEV__) {
console.error(
"Danger: Discarding unexpected node:",
'Danger: Discarding unexpected node:',
renderNode
);
}
+1 -1
View File
@@ -746,7 +746,7 @@ var ReactCompositeComponentMixin = assign({},
inst.shouldComponentUpdate(nextProps, nextState, nextContext);
if (__DEV__) {
if (typeof shouldUpdate === "undefined") {
if (typeof shouldUpdate === 'undefined') {
console.warn(
(this.getName() || 'ReactCompositeComponent') +
'.shouldComponentUpdate(): Returned undefined instead of a ' +
+1 -1
View File
@@ -192,7 +192,7 @@ flushBatchedUpdates = ReactPerf.measure(
*/
function enqueueUpdate(component, callback) {
invariant(
!callback || typeof callback === "function",
!callback || typeof callback === 'function',
'enqueueUpdate(...): You called `setProps`, `replaceProps`, ' +
'`setState`, `replaceState`, or `forceUpdate` with a callback that ' +
'isn\'t callable.'
+1 -1
View File
@@ -60,7 +60,7 @@ assign(CallbackQueue.prototype, {
if (callbacks) {
invariant(
callbacks.length === contexts.length,
"Mismatched list of contexts in callback queue"
'Mismatched list of contexts in callback queue'
);
this._callbacks = null;
this._contexts = null;
+5 -5
View File
@@ -13,11 +13,11 @@
'use strict';
var ESCAPE_LOOKUP = {
"&": "&",
">": ">",
"<": "&lt;",
"\"": "&quot;",
"'": "&#x27;"
'&': '&amp;',
'>': '&gt;',
'<': '&lt;',
'"': '&quot;',
'\'': '&#x27;'
};
var ESCAPE_REGEX = /[&><"']/g;