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

Commit

Permalink
update docs, make it so unit test code can always get the _staticServ…
Browse files Browse the repository at this point in the history
…erProvider
  • Loading branch information
joelrbrandt committed Feb 28, 2013
1 parent b33f2a4 commit f77c513
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/extensions/default/StaticServer/main.js
Expand Up @@ -53,13 +53,6 @@ define(function (require, exports, module) {
var _nodeConnectionDeferred = $.Deferred();

var _baseUrl = "";

/**
* @private
* @type{StaticServerProvider}
* Stores the singleton StaticServerProvider for use in unit testing.
*/
var _staticServerProvider;

/**
* @constructor
Expand Down Expand Up @@ -109,7 +102,6 @@ define(function (require, exports, module) {
* # LiveDevServerProvider.readyToServe()
*
* Gets the server details from the StaticServerDomain in node.
* Handles connecting to node and installing the domain if necessary.
* The domain itself handles starting a server if necessary (when
* the staticServer.getServer command is called).
*
Expand Down Expand Up @@ -150,6 +142,13 @@ define(function (require, exports, module) {
return readyToServeDeferred.promise();
};

/**
* @private
* @type{StaticServerProvider}
* Stores the singleton StaticServerProvider for use in unit testing.
*/
var _staticServerProvider = new StaticServerProvider();

/**
* @private
* @return {StaticServerProvider} The singleton StaticServerProvider initialized
Expand All @@ -161,7 +160,6 @@ define(function (require, exports, module) {

AppInit.appReady(function () {
// Register as a Live Development server provider
_staticServerProvider = new StaticServerProvider();
LiveDevServerManager.registerProvider(_staticServerProvider, 5);

// Start up the node connection, which is held in the
Expand Down

0 comments on commit f77c513

Please sign in to comment.