Browse Source

wasn't sending pos arg for puts()

v0.7.4-release
Ryan 16 years ago
parent
commit
8a8e9df72e
  1. 4
      configure
  2. 6
      src/file.js
  3. 2
      src/main.js

4
configure

@ -80,9 +80,9 @@ all-progress:
install:
if test -n "\$(DESTDIR)"; then \\
$WAF install --yes --destdir="\$(DESTDIR)" ; \\
$WAF install --destdir="\$(DESTDIR)" ; \\
else \\
$WAF install --yes ; \\
$WAF install ; \\
fi;
uninstall:

6
src/file.js

@ -40,7 +40,11 @@ File.cat = function (path, callback) {
}
File.prototype.puts = function (data, callback) {
this.write(data + "\n", callback);
this.write(data + "\n", -1, callback);
};
File.prototype.print = function (data, callback) {
this.write(data, -1, callback);
};
File.prototype.open = function (path, mode, callback) {

2
src/main.js

@ -126,7 +126,7 @@ node.path = new function () {
function finish() {
//node.debug("finish 1 load <" + filename + ">");
if (scaffold.onLoad instanceof Function) {
//node.debug("foo bar <" + filename + ">");
//node.debug("calling onLoad for <" + filename + ">");
scaffold.onLoad();
}
//node.debug("finish 2 load <" + filename + ">");

Loading…
Cancel
Save