Skip to content

Commit

Permalink
add some documentation and restructure files to follow conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrbrandt committed Mar 1, 2013
1 parent af92c28 commit 299a56c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ define(function (require, exports, module) {

// Helper function that loads our domain into the node server
function loadSimpleDomain() {
var path = ExtensionUtils.getModulePath(module, "SimpleDomain");
var path = ExtensionUtils.getModulePath(module, "node/SimpleDomain");
var loadPromise = nodeConnection.loadDomains([path], true);
loadPromise.fail(function () {
console.log("[brackets-simple-node] failed to load domain");
Expand Down
4 changes: 3 additions & 1 deletion SimpleDomain.js → node/SimpleDomain.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ maxerr: 50, node: true */
false, // this command is synchronous
"Returns the total and free memory on the user's system in bytes",
[], // no parameters
[{name: "memory", type: "{total: number, free: number}"}]
[{name: "memory",
type: "{total: number, free: number}",
description: "amount of total and free memory in bytes"}]
);
}

Expand Down

0 comments on commit 299a56c

Please sign in to comment.