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

Commit

Permalink
more markdown fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
redmunds committed Jun 3, 2014
1 parent 65d2f2b commit 91c48a4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/brackets.js
Expand Up @@ -25,13 +25,13 @@
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global require, define, brackets: true, $, window, navigator, Mustache */

// TODO: (issue #264) break out the definition of brackets into a separate module from the application controller logic

/**
* brackets is the root of the Brackets codebase. This file pulls in all other modules as
* dependencies (or dependencies thereof), initializes the UI, and binds global menus & keyboard
* shortcuts to their Commands.
*
* TODO: (issue #264) break out the definition of brackets into a separate module from the application controller logic
*
* Unlike other modules, this one can be accessed without an explicit require() because it exposes
* a global object, window.brackets.
*/
Expand Down
3 changes: 3 additions & 0 deletions src/dependencies.js
Expand Up @@ -24,6 +24,9 @@
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50, evil:true */
/*global window, document:true, CollectionUtils:true */

/**
* Check for missing dependencies
*/
window.setTimeout(function () {
"use strict";
var deps = { "Mustache": window.Mustache, "jQuery": window.$, "RequireJS": window.require };
Expand Down
21 changes: 11 additions & 10 deletions src/main.js
Expand Up @@ -21,14 +21,13 @@
*
*/

/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global require, define, window, brackets, navigator */

/**
* The boostrapping module for brackets. This module sets up the require
* configuration and loads the brackets module.
*/

/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global require, define, window, brackets, navigator */

require.config({
paths: {
"text" : "thirdparty/text/text",
Expand All @@ -48,12 +47,14 @@ if (window.location.search.indexOf("testEnvironment") > -1) {
});
}

// hack for r.js optimization, move locale to another config call

// Use custom brackets property until CEF sets the correct navigator.language
// NOTE: When we change to navigator.language here, we also should change to
// navigator.language in ExtensionLoader (when making require contexts for each
// extension).
/**
* hack for r.js optimization, move locale to another config call
*
* Use custom brackets property until CEF sets the correct navigator.language
* NOTE: When we change to navigator.language here, we also should change to
* navigator.language in ExtensionLoader (when making require contexts for each
* extension).
*/
require.config({
locale: window.localStorage.getItem("locale") || (typeof (brackets) !== "undefined" ? brackets.app.language : navigator.language)
});
Expand Down
2 changes: 1 addition & 1 deletion src/strings.js
Expand Up @@ -26,7 +26,7 @@

/**
* This file provides the interface to user visible strings in Brackets. Code that needs
* to display strings should should load this module by calling var Strings = require("strings").
* to display strings should should load this module by calling `var Strings = require("strings")`.
* The i18n plugin will dynamically load the strings for the right locale and populate
* the exports variable. See src\nls\strings.js for the master file of English strings.
*/
Expand Down
5 changes: 4 additions & 1 deletion src/xorigin.js
Expand Up @@ -23,10 +23,13 @@

/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global brackets: true, navigator:true, document:true, window:true */

/**
* Function to test whether a given error represents an illegal cross origin access
*/
(function () {
"use strict";

// Function to test whether a given error represents an illegal cross origin access
var testCrossOriginError;

if (navigator.userAgent.search(" Chrome/") !== -1) {
Expand Down

0 comments on commit 91c48a4

Please sign in to comment.