From 914f046aa772fef0471ab8a2132cac450d9d39e4 Mon Sep 17 00:00:00 2001 From: synergycns Date: Fri, 16 Oct 2015 11:54:51 -0500 Subject: [PATCH 1/3] Update socketBackend.js Adjust the "subscribe" method to use updated Socket.IO methods specifically, "socket.off" instead of "socket.removeListener" --- src/socketBackend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socketBackend.js b/src/socketBackend.js index aa3e5fa..2fdf8e5 100644 --- a/src/socketBackend.js +++ b/src/socketBackend.js @@ -55,7 +55,7 @@ function createSailsBackend($browser, $window, $injector, $q, $timeout){ connection.subscribe = function(event,handler){ var callback = tick($window.io.socket,handler); $window.io.socket.on(event,callback); - return angular.bind($window.io.socket, $window.io.socket.removeListener, event, callback); + return angular.bind($window.io.socket, $window.io.socket.off, event, callback); } return connection; From 7b8ad4038f784e7faae039b5a6e6dea958c3d473 Mon Sep 17 00:00:00 2001 From: synergycns Date: Wed, 16 Dec 2015 07:43:18 -0600 Subject: [PATCH 2/3] Update package.json Add "karma" to devDependencies --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index c229f5a..808c566 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "grunt-ng-constant": "~0.4.8", "grunt-newer": "~0.6.1", "jshint-stylish": "~0.1.5", + "karma": "^0.13.0", "karma-phantomjs-launcher": "~0.1.2", "karma-chrome-launcher": "~0.1.2", "karma-firefox-launcher": "~0.1.3", From 982f274741201c02801bf2a20343f5264c65a10c Mon Sep 17 00:00:00 2001 From: synergycns Date: Wed, 16 Dec 2015 07:47:10 -0600 Subject: [PATCH 3/3] Update package.json Upgrade grunt-karma --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 808c566..42d4233 100644 --- a/package.json +++ b/package.json @@ -38,11 +38,11 @@ "grunt-contrib-concat": "~0.3.0", "grunt-contrib-uglify": "~0.4.0", "grunt-contrib-jshint": "~0.9.2", - "grunt-karma": "~0.8.0", + "karma": "^0.13.0", + "grunt-karma": "~0.12.1", "grunt-ng-constant": "~0.4.8", "grunt-newer": "~0.6.1", "jshint-stylish": "~0.1.5", - "karma": "^0.13.0", "karma-phantomjs-launcher": "~0.1.2", "karma-chrome-launcher": "~0.1.2", "karma-firefox-launcher": "~0.1.3",