Skip to content

Commit

Permalink
Rename getAvailableSockets to getDebuggableWindows, which is what the…
Browse files Browse the repository at this point in the history
… function actually does.
  • Loading branch information
Ian Wehrman committed Mar 14, 2013
1 parent 4b00554 commit e9fd9e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/LiveDevelopment/Inspector/Inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ define(function Inspector(require, exports, module) {

/** Public Functions *****************************************************/

/** Get the available debugger sockets from the remote debugger
/** Get a list of the available windows/tabs/extensions are are remote-debuggable
* @param {string} host IP or name
* @param {integer} debugger port
*/
function getAvailableSockets(host, port) {
function getDebuggableWindows(host, port) {
if (!host) {
host = "127.0.0.1";
}
Expand Down Expand Up @@ -264,7 +264,7 @@ define(function Inspector(require, exports, module) {
}
var deferred = new $.Deferred();
_connectDeferred = deferred;
var promise = getAvailableSockets();
var promise = getDebuggableWindows();
promise.done(function onGetAvailableSockets(response) {
if (deferred.isRejected()) {
return;
Expand Down Expand Up @@ -315,7 +315,7 @@ define(function Inspector(require, exports, module) {
}

// Export public functions
exports.getAvailableSockets = getAvailableSockets;
exports.getDebuggableWindows = getDebuggableWindows;
exports.on = on;
exports.off = off;
exports.disconnect = disconnect;
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/default/DebugCommands/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ define(function (require, exports, module) {
} else {
var Inspector = brackets.getModule("LiveDevelopment/Inspector/Inspector");
var port = brackets.app.getRemoteDebuggingPort ? brackets.app.getRemoteDebuggingPort() : 9234;
Inspector.getAvailableSockets("127.0.0.1", port)
Inspector.getDebuggableWindows("127.0.0.1", port)
.fail(result.reject)
.done(function (response) {
var page = response[0];
Expand Down

0 comments on commit e9fd9e0

Please sign in to comment.