From fab30b4930ec8a415a46fe34ebcee04101b4ba61 Mon Sep 17 00:00:00 2001 From: Evan Theurer Date: Fri, 19 Jun 2015 17:09:52 +0200 Subject: [PATCH] Fix breaking change: Unable to return values from controller constructor functions. See https://github.com/angular/angular.js/pull/8882/files. --- static/js/directives/audiovideo.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/static/js/directives/audiovideo.js b/static/js/directives/audiovideo.js index f5b67c93..db9c6de7 100644 --- a/static/js/directives/audiovideo.js +++ b/static/js/directives/audiovideo.js @@ -28,7 +28,7 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ var controller = ['$scope', '$element', '$attrs', function($scope, $element, $attrs) { - var streams = {}; + var streams = this.streams = {}; var calls = {}; var getStreamId = function(stream, currentcall) { @@ -368,10 +368,6 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ }); - return { - streams: streams - }; - }]; var compile = function(tElement, tAttr) {