Comparing version 1.0.6 to 1.0.7
@@ -146,5 +146,6 @@ var Communication = require('./Communication'); | ||
firestarter.burst = function( comm, params ){ | ||
var self = this; | ||
var event = params[ 0 ]; | ||
var hasCallback = params.length>0 && isFunction( params[ params.length-1 ] ); | ||
var call_params = [].slice.call(params, 1, hasCallback ? params.length-1 : params.length ); | ||
var call_params = self.sliceArguments.apply( self, params ).slice( 1, hasCallback ? params.length-1 : params.length ); | ||
var callback = hasCallback ? params[ params.length-1 ] : null; | ||
@@ -157,3 +158,3 @@ | ||
if( newComm.callback ) | ||
this.comms[ newComm.id ] = { comm: newComm, callback: newComm.callback }; | ||
this.comms[ newComm.id ] = { callback: newComm.callback }; | ||
@@ -215,26 +216,2 @@ this.barrel.intoxicate( newComm ); | ||
/** | ||
* Distpaches the burst event to be emited within the flow of a previous event | ||
* | ||
* @method burst | ||
* @param {Communication} comm The communication object representing the event to be emited. | ||
* @param {Array} params Parameters associatd with the communication to send with | ||
*/ | ||
firestarter.burst = function( comm, params ){ | ||
var self = this; | ||
var event = params[ 0 ]; | ||
var hasCallback = params.length>0 && isFunction( params[ params.length-1 ] ); | ||
var call_params = self.sliceArguments.apply( self, arguments ).slice( 1, hasCallback ? params.length-1 : params.length ); | ||
var callback = hasCallback ? params[ params.length-1 ] : null; | ||
var newComm = comm.burst( this.name, event, call_params, callback ); | ||
this.logger.harconlog( null, 'Igniting', {newComm: newComm.shallow(), comm: comm.shallow()} ); | ||
if( newComm.callback ) | ||
this.comms[ newComm.id ] = { callback: newComm.callback }; | ||
this.barrel.intoxicate( newComm ); | ||
}; | ||
firestarter.close = function( ){ | ||
@@ -241,0 +218,0 @@ }; |
@@ -8,3 +8,3 @@ var Communication = require('../lib/Communication'); | ||
var VERSION = exports.VERSION = '1.0.6'; | ||
var VERSION = exports.VERSION = '1.0.7'; | ||
@@ -11,0 +11,0 @@ var _ = require('lodash'); |
{ | ||
"name": "harcon", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Messaging/Service Bus for the harmonic convergence of node-based enterprise entities.", | ||
@@ -49,3 +49,3 @@ "keywords": [ | ||
}, | ||
"_id": "harcon@1.0.6" | ||
"_id": "harcon@1.0.7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40
16757
969930