minor fixes

This commit is contained in:
Sami Samhuri 2010-11-21 20:35:44 -08:00
parent a74ea00f16
commit ef74c72bc8
3 changed files with 12 additions and 5 deletions

View file

@ -62,7 +62,7 @@ var ArrayExt = exports.ArrayExt = {
// pack
// partition
, pluck: function(a, /* key paths, ... */) {
, pluck: function(a /* , key paths, ... */) {
var args = [].slice.call(arguments, 1);
args.unshift(a);
return pluck.apply(null, args);

View file

@ -87,7 +87,7 @@ var DateExt = {
},
shortMonth: function(d) {
return MonthsShort(d.getMonth());
}
},
weekday: function(d) {
return Weekdays(d.getDay());
},

View file

@ -1,11 +1,18 @@
var constants = require('constants')
, fs = require('fs')
var fs = require('fs')
, ArrayExt = require('./array-ext').ArrayExt
, LineEmitter = require('./line-emitter').LineEmitter
, ext = require('./ext')
, ENOENT = constants.ENOENT
, constants
, ENOENT
;
try {
constants = require('constants')
} catch (e) {
constants = process
}
ENOENT = constants.ENOENT
exports.extend = function(obj) {
ext.extend(obj || fs, FileExt);
}