Skip to content

Commit

Permalink
Fixing method definition order.
Browse files Browse the repository at this point in the history
  • Loading branch information
tizzo committed Nov 4, 2014
1 parent 8dc6167 commit c2b05be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ var Loader = function() {
this.load = this.load.bind(this);
this.parseYaml = this.parseYaml.bind(this);
this.add = this.add.bind(this);
this.errorHandler = this.errorHandler.bind(this);
this.context = {};
this.loads = [];
this.loads = [];
this.loads = [];
this.errorOnError = false;
};
util.inherits(Loader, EventEmitter);

/**
* Allow errors to be handled appropriately based on configuration.
Expand All @@ -31,7 +33,6 @@ Loader.prototype.errorHandler = function(error, done) {
done(null, {});
}
};
util.inherits(Loader, EventEmitter);

/**
* Flexible loader function that can load files from objects or directories.
Expand Down Expand Up @@ -97,7 +98,7 @@ Loader.prototype.addObject = function(object, options) {
* @param object
* The object to add.
* @param format
* A string representing the format. See `Loader.translateKeyFormat()` for options.
* A string representing the format. See `Loader.translateKeyFormat()`.
*/
Loader.prototype.addAndNormalizeObject = function(object, format, options) {
format = format || 'camelCase';
Expand Down

0 comments on commit c2b05be

Please sign in to comment.