Permalink
Browse files

Renamed callbackDone to callback for consistency

  • Loading branch information...
chetan51 committed Dec 16, 2010
1 parent d4b282b commit 8ec50027447324517e6231c63f33f525f9eb4ceb
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/ni.js
View
@@ -69,7 +69,7 @@ var Ni = function() {
* Ni.config('root', LOCATION);
*/
- this.boot = function(callbackDone) {
+ this.boot = function(callback) {
Step(
function bootStrapEverything() {
@@ -87,7 +87,7 @@ var Ni = function() {
Ni.models = models;
Ni.views = views;
Ni.libraries = libraries;
- callbackDone();
+ callback();
}
);
@@ -349,11 +349,11 @@ function bootStrapModules(__root, callback) {
* Loads files from given directory and calls the given function on them.
*/
-function loadFilesFromDir(dir, fnOnFile, callbackDone) {
+function loadFilesFromDir(dir, fnOnFile, callback) {
fs.readdir(dir, function(err, files){
- if (err || !files) callbackDone(null);
+ if (err || !files) callback(null);
else {
Step(
function readFiles() {
@@ -376,8 +376,8 @@ function loadFilesFromDir(dir, fnOnFile, callbackDone) {
},
function finish(err) {
- if (err) callbackDone(err);
- callbackDone(null);
+ if (err) callback(err);
+ callback(null);
}
);

0 comments on commit 8ec5002

Please sign in to comment.