Skip to content

Commit c41f852

Browse files
committed
chore: build 1.0.7 release
1 parent 566265b commit c41f852

11 files changed

+416
-22
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 1.0.7 (2015-1-20)
2+
3+
Features:
4+
- Named functions for debugging
5+
- Add .bindToScope() and expose .safeDigest() with scope/rootScopeFailover option
6+
7+
Bugfixes:
8+
- Remove default protocol
9+
10+
Deprecated:
11+
- Change $WebSocketBackend.createWebSocketBackend -> $WebSocketBackend.create
12+
113
## 1.0.6 (2015-1-7)
214

315
Features:

angular-websocket-mock.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
(function() {
2+
'use strict';
23

34
function $WebSocketBackend() {
45
var connectQueue = [];
@@ -23,8 +24,7 @@
2324
pendingCloses.push(true);
2425
};
2526

26-
27-
this.createWebSocketBackend = function (url, protocols) {
27+
function createWebSocketBackend(url, protocols) {
2828
pendingConnects.push(url);
2929
// pendingConnects.push({
3030
// url: url,
@@ -35,7 +35,9 @@
3535
return new $MockWebSocket(url, protocols);
3636
}
3737
return new $MockWebSocket(url);
38-
};
38+
}
39+
this.create = createWebSocketBackend;
40+
this.createWebSocketBackend = createWebSocketBackend;
3941

4042
this.flush = function () {
4143
var url, msg, config;

0 commit comments

Comments
 (0)