Skip to content

Commit

Permalink
apply function options prior to global options
Browse files Browse the repository at this point in the history
  • Loading branch information
guersam committed Nov 6, 2012
1 parent 5de07d4 commit bfbd3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dao-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = (function() {
}

DAOFactory.prototype.sync = function(options) {
options = Utils._.extend(options || {}, this.options)
options = options ? this.options : Utils._.extend({}, this.options, options)

var self = this
return new Utils.CustomEventEmitter(function(emitter) {
Expand Down

0 comments on commit bfbd3f1

Please sign in to comment.