Skip to content

Commit

Permalink
Reverting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thoov committed Apr 24, 2015
1 parent 7630ca2 commit dcd6d94
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mock-socket",
"version": "0.3.1",
"version": "0.3.2",
"homepage": "https://github.com/thoov/mock-socket",
"authors": [
"Travis Hoover <[email protected]>"
Expand Down
8 changes: 0 additions & 8 deletions dist/mock-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ function webSocketProperties(websocket) {
get: function() { return this._onopen; },
set: function(callback) {
this._onopen = eventMessageSource(callback);
// Dispose the previous listeners ('set' overrides)
this.service.clearAll('clientOnOpen');
this.service.setCallbackObserver('clientOnOpen', this._onopen, websocket);
}
},
Expand All @@ -255,8 +253,6 @@ function webSocketProperties(websocket) {
get: function() { return this._onmessage; },
set: function(callback) {
this._onmessage = eventMessageSource(callback);
// Dispose the previous listeners ('set' overrides)
this.service.clearAll('clientOnMessage');
this.service.setCallbackObserver('clientOnMessage', this._onmessage, websocket);
}
},
Expand All @@ -265,8 +261,6 @@ function webSocketProperties(websocket) {
get: function() { return this._onclose; },
set: function(callback) {
this._onclose = eventMessageSource(callback);
// Dispose the previous listeners ('set' overrides)
this.service.clearAll('clientOnclose');
this.service.setCallbackObserver('clientOnclose', this._onclose, websocket);
}
},
Expand All @@ -275,8 +269,6 @@ function webSocketProperties(websocket) {
get: function() { return this._onerror; },
set: function(callback) {
this._onerror = eventMessageSource(callback);
// Dispose the previous listeners ('set' overrides)
this.service.clearAll('clientOnError');
this.service.setCallbackObserver('clientOnError', this._onerror, websocket);
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/mock-socket.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mock-socket",
"version": "0.3.1",
"version": "0.3.2",
"description": "A mocking library for WebSockets",
"main": "./src/main.js",
"directories": {
Expand Down
Loading

0 comments on commit dcd6d94

Please sign in to comment.