mirror of
https://github.com/Hopiu/postal.js.git
synced 2026-05-24 22:43:44 +00:00
Adding built version to repo
This commit is contained in:
parent
db0e59314b
commit
56438a43b6
2 changed files with 6 additions and 6 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue