Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

fix global leaks #22

Merged
merged 2 commits into from
Feb 1, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/stomp-exceptions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
QueueEmpty = exports.QueueEmpty = function() {
var QueueEmpty = exports.QueueEmpty = function() {
this.name = "QueueEmpty";
this.message = "Queue is Empty";
};
4 changes: 2 additions & 2 deletions lib/stomp-utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var exceptions = require('./stomp-exceptions');
var sys = require('util');

StompLogging = exports.StompLogging = function(should_debug) {
var StompLogging = exports.StompLogging = function(should_debug) {
this.should_debug = should_debug;
};

@@ -26,7 +26,7 @@ StompLogging.prototype.die = function(message) {
this.error(message, true);
};

StompUtils = exports.StompUtils = function() {
var StompUtils = exports.StompUtils = function() {
this.available_utils = [];
};

2 changes: 1 addition & 1 deletion lib/stomp.js
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@ function Stomp(args) {
this.debug = args['debug'];
this.login = args['login'] || null;
this.passcode = args['passcode'] || null;
this.log = new StompLogging(this.debug);
this.log = new stomp_utils.StompLogging(this.debug);
this._subscribed_to = {};
this.session = null;
this.ssl = args['ssl'] ? true : false;