Correct silly mistake with argument order to $.extend

This commit is contained in:
Tony Garnock-Jones 2014-02-28 09:47:34 -05:00
parent c57833938a
commit 1bffa782db
1 changed files with 2 additions and 2 deletions

View File

@ -491,11 +491,11 @@ PresenceDetector.prototype.presenceExistsFor = function (probeRoute) {
/* Utilities: matching demand for some service */
function DemandMatcher(pattern, metaLevel, options) {
options = $.extend(options, {
options = $.extend({
demandLevel: 0,
supplyLevel: 0,
demandSideIsSubscription: true
});
}, options);
this.pattern = pattern;
this.metaLevel = metaLevel;
this.demandLevel = options.demandLevel;