From 1d628ed8493f1a7ee1db48b02ce962489b8a8af3 Mon Sep 17 00:00:00 2001 From: Alex Schneider Date: Sat, 17 Oct 2015 16:23:48 -0700 Subject: [PATCH] Remove comments that we don't really need --- js/plugins.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/js/plugins.js b/js/plugins.js index b028069..3bff6ab 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -57,7 +57,7 @@ var UrlPlugin = function(name, urlCallback) { * to display when messages are received. * */ - plugins.service('plugins', ['userPlugins', '$sce', '$sanitize', function(userPlugins, $sce, $sanitize) { + plugins.service('plugins', ['userPlugins', '$sce', function(userPlugins, $sce) { /* * Defines the plugin manager object @@ -85,7 +85,6 @@ var UrlPlugin = function(name, urlCallback) { */ var contentForMessage = function(message) { message.metadata = []; - // message.text = $sanitize(message.text); var addPluginContent = function(content, pluginName, num) { if (num) { pluginName += " " + num; @@ -187,7 +186,6 @@ plugins.factory('userPlugins', function() { var addMatch = function(match) { for (var i = 0; match && i < match.length; i++) { var id = match[i].substr(match[i].length - 22, match[i].length); - // content.push(''); var element = angular.element('') .attr('src', '//embed.spotify.com/?uri=spotify:track:' + id) .attr('width', '300') @@ -221,7 +219,6 @@ plugins.factory('userPlugins', function() { .attr('frameborder', '0') .attr('allowfullscreen', 'true'); return element.prop('outerHTML'); - // return ''; } }); @@ -245,7 +242,6 @@ plugins.factory('userPlugins', function() { .attr('height', '270') .attr('frameborder', '0'); return element.prop('outerHTML'); - // return ''; } return null; @@ -268,7 +264,6 @@ plugins.factory('userPlugins', function() { .attr('height', '270') .attr('frameborder', '0'); return element.prop('outerHTML'); - // return ''; } return null; @@ -297,7 +292,6 @@ plugins.factory('userPlugins', function() { .addClass('embed') .attr('src', url)); return element.prop('outerHTML'); - // return ''; } }); @@ -312,7 +306,6 @@ plugins.factory('userPlugins', function() { .append(angular.element('') .attr('src', url)); return element.prop('outerHTML'); - // return ''; } }); @@ -330,7 +323,6 @@ plugins.factory('userPlugins', function() { .attr('frameborder', 'no') .attr('src', 'https://w.soundcloud.com/player/?url=' + url + '&color=ff6600&auto_play=false&show_artwork=true'); return element.prop('outerHTML'); - // return ''; } /* MixCloud */ @@ -341,7 +333,6 @@ plugins.factory('userPlugins', function() { .attr('frameborder', '0') .attr('src', '//www.mixcloud.com/widget/iframe/?feed=' + url + '&mini=1&stylecolor=&hide_artwork=&embed_type=widget_standard&hide_tracklist=1&hide_cover='); return element.prop('outerHTML'); - // return ''; } }); @@ -358,7 +349,6 @@ plugins.factory('userPlugins', function() { .attr('marginheight', '0') .attr('src', url + '&output=embed'); return element.prop('outerHTML'); - // return ''; } }); @@ -393,7 +383,6 @@ plugins.factory('userPlugins', function() { .attr('src', url) .attr('alt', 'Meteogram for ' + city); return element.prop('outerHTML'); - // return "Meteogram for " + city + ""; } }); @@ -436,7 +425,6 @@ plugins.factory('userPlugins', function() { .addClass('embed') .attr('src', src)); return element.prop('outerHTML'); - // return ''; } }); @@ -480,7 +468,6 @@ plugins.factory('userPlugins', function() { .attr('height', '600') .attr('frameborder', '0'); return element.prop('outerHTML') + ''; - // return '; } });