Adding built version to repo

This commit is contained in:
Jim Cowart 2011-09-11 22:08:24 -04:00
parent db0e59314b
commit 56438a43b6
2 changed files with 6 additions and 6 deletions

View file

@ -28,8 +28,8 @@ var DEFAULT_EXCHANGE = "/",
NO_OP = function() { };
var defaultConfiguration = {
exchange: exchange || DEFAULT_EXCHANGE,
topic: topic || "",
exchange: DEFAULT_EXCHANGE,
topic: "",
callback: NO_OP,
priority: DEFAULT_PRIORITY,
constraints: [],
@ -40,7 +40,7 @@ var defaultConfiguration = {
};
var ChannelDefinition = function(exchange, topic) {
this.configuration = defaultConfiguration;
this.configuration = _.extend(defaultConfiguration, { exchange: exchange, topic: topic });
} ;
ChannelDefinition.prototype = {

View file

@ -26,8 +26,8 @@ var DEFAULT_EXCHANGE = "/",
NO_OP = function() { };
var defaultConfiguration = {
exchange: exchange || DEFAULT_EXCHANGE,
topic: topic || "",
exchange: DEFAULT_EXCHANGE,
topic: "",
callback: NO_OP,
priority: DEFAULT_PRIORITY,
constraints: [],
@ -38,7 +38,7 @@ var defaultConfiguration = {
};
var ChannelDefinition = function(exchange, topic) {
this.configuration = defaultConfiguration;
this.configuration = _.extend(defaultConfiguration, { exchange: exchange, topic: topic });
} ;
ChannelDefinition.prototype = {