Skip to content

Commit

Permalink
changes for newer node
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Aug 5, 2010
1 parent 8b686dd commit 526034a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions externals/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ var dataHandler = function (data, callback) {
if (obj) { callback(obj); }
}
}
}

var couchRequestToJSGI = function (obj, deligation) {



}

var application = function (obj, deligation) {
Expand All @@ -96,12 +90,7 @@ var application = function (obj, deligation) {

}

var inArray = function (array, obj) {
for (i = 0; i < array.length; i+=1) {
if (array[i] == obj) { return true; }
} return false;
}
if (inArray(process.argv, __filename) && process.argv[process.argv.length - 1].startsWith('http')) {
if (require.main === module && process.argv[process.argv.length - 1].startsWith('http')) {
var deligation = start(process.argv[process.argv.length - 1]);

process.stdio.addListener("data", function(data) {
Expand Down
2 changes: 1 addition & 1 deletion viewserver/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

var sys = require("sys");
var posix = require("posix");
var fs = require("fs");

var store = {};
current_functions = [];
Expand Down

0 comments on commit 526034a

Please sign in to comment.