Skip to content

Commit d3cd072

Browse files
committed
Merge pull request benjaminws#22 from aleafs/fix_global_leaks
fix global leaks
2 parents ca2e094 + 50fc5e8 commit d3cd072

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/stomp-exceptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
QueueEmpty = exports.QueueEmpty = function() {
1+
var QueueEmpty = exports.QueueEmpty = function() {
22
this.name = "QueueEmpty";
33
this.message = "Queue is Empty";
44
};

lib/stomp-utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var exceptions = require('./stomp-exceptions');
22
var sys = require('util');
33

4-
StompLogging = exports.StompLogging = function(should_debug) {
4+
var StompLogging = exports.StompLogging = function(should_debug) {
55
this.should_debug = should_debug;
66
};
77

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

29-
StompUtils = exports.StompUtils = function() {
29+
var StompUtils = exports.StompUtils = function() {
3030
this.available_utils = [];
3131
};
3232

lib/stomp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function Stomp(args) {
251251
this.debug = args['debug'];
252252
this.login = args['login'] || null;
253253
this.passcode = args['passcode'] || null;
254-
this.log = new StompLogging(this.debug);
254+
this.log = new stomp_utils.StompLogging(this.debug);
255255
this._subscribed_to = {};
256256
this.session = null;
257257
this.ssl = args['ssl'] ? true : false;

0 commit comments

Comments
 (0)