Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Update source to adhere to quote style guide. Fixes issue #1100. #1211

Merged
merged 4 commits into from
Jul 9, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/CSSAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/

define(function CSSAgent(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");

Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/ConsoleAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* local console.
*/
define(function ConsoleAgent(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");

Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/DOMAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* the document.
*/
define(function DOMAgent(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");
var RemoteAgent = require("LiveDevelopment/Agents/RemoteAgent");
Expand Down
8 changes: 4 additions & 4 deletions src/LiveDevelopment/Agents/DOMHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* DOMHelpers is a collection of functions used by the DOMAgent exports `eachNode(src, callback)`
*/
define(function DOMHelpersModule(require, exports, module) {
'use strict';
"use strict";

/** Test if the given character is a quote character
* {char} source character
Expand Down Expand Up @@ -145,8 +145,8 @@ define(function DOMHelpersModule(require, exports, module) {
function _extractAttributes(content) {

// remove the node name and the closing bracket and optional slash
content = content.replace(/^<\S+\s*/, '');
content = content.replace(/\s*\/?>$/, '');
content = content.replace(/^<\S+\s*/, "");
content = content.replace(/\s*\/?>$/, "");
if (content.length === 0) {
return;
}
Expand Down Expand Up @@ -205,7 +205,7 @@ define(function DOMHelpersModule(require, exports, module) {
}

// closed node (/ at the end)
if (content[content.length - 2] === '/') {
if (content[content.length - 2] === "/") {
payload.closed = true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/DOMNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* iterated using `each()` or `find()`. `dump` shows the entire tree on the console.
*/
define(function DOMNodeModule(require, exports, module) {
'use strict';
"use strict";

var DOMHelpers = require("LiveDevelopment/Agents/DOMHelpers");

Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/EditAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* document.
*/
define(function EditAgent(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");
var DOMAgent = require("LiveDevelopment/Agents/DOMAgent");
Expand Down
6 changes: 3 additions & 3 deletions src/LiveDevelopment/Agents/GotoAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* GotoAgent constructs and responds to the in-browser goto dialog.
*/
define(function GotoAgent(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");
var DOMAgent = require("LiveDevelopment/Agents/DOMAgent");
Expand All @@ -54,7 +54,7 @@ define(function GotoAgent(require, exports, module) {
* @param {string} URL
*/
function _fileFromURL(url) {
var comp = url.split('/');
var comp = url.split("/");
return comp[comp.length - 1];
}

Expand Down Expand Up @@ -171,7 +171,7 @@ define(function GotoAgent(require, exports, module) {
var matches = /^(.*):([^:]+)$/.exec(url);
if (matches) {
url = matches[1];
location = matches[2].split(',');
location = matches[2].split(",");
if (location.length === 1) {
location = parseInt(location[0], 10);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/HighlightAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* highlight requests, and allows highlighting nodes and rules in the browser.
*/
define(function HighlightAgent(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");
var RemoteAgent = require("LiveDevelopment/Agents/RemoteAgent");
Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/NetworkAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* `wasURLRequested(url)` to query whether a resource was loaded.
*/
define(function NetworkAgent(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");

Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/RemoteAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Inspector named "Remote.EVENT".
*/
define(function RemoteAgent(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");

Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/RemoteFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* exported functions.
*/
function RemoteFunctions() {
'use strict';
"use strict";

var _body = window.document.getElementsByTagName("body")[0]; // the document body
var _sourceHighlight; // the highlighted element in the source
Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/ScriptAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* interfaces with the remote debugger.
*/
define(function ScriptAgent(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");
var DOMAgent = require("LiveDevelopment/Agents/DOMAgent");
Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Documents/CSSDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* 2nd argument to the listener will be this CSSDocument.
*/
define(function CSSDocumentModule(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");
var CSSAgent = require("LiveDevelopment/Agents/CSSAgent");
Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Documents/HTMLDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* editor.
*/
define(function HTMLDocumentModule(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");
var DOMAgent = require("LiveDevelopment/Agents/DOMAgent");
Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Documents/JSDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* line is missing.
*/
define(function JSDocumentModule(require, exports, module) {
'use strict';
"use strict";

var Inspector = require("LiveDevelopment/Inspector/Inspector");
var ScriptAgent = require("LiveDevelopment/Agents/ScriptAgent");
Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Inspector/Inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
* that stores all returned values as an object.
*/
define(function Inspector(require, exports, module) {
'use strict';
"use strict";

var _messageId = 1; // id used for remote method calls, auto-incrementing
var _messageCallbacks = {}; // {id -> function} for remote method calls
Expand Down
Loading