From 78dd7764260a8455bf91c83945dad9326cd709dd Mon Sep 17 00:00:00 2001 From: Robin Linus Date: Thu, 23 Jun 2016 11:03:49 -0600 Subject: [PATCH] Rename global variable 'Chat' to 'Snapdrop' Initially a lot of code was copied from another project. This lead to confusing naming conventions. --- app/elements/buddy-finder/buddy-avatar.html | 2 +- app/elements/file-sharing/file-button-behavior.html | 6 +++--- app/elements/file-sharing/file-button.html | 2 +- app/elements/file-sharing/file-drop-behavior.html | 6 +++--- app/elements/file-sharing/file-input-behavior.html | 2 +- app/elements/file-sharing/file-receiver.html | 2 +- app/elements/file-sharing/file-selection-behavior.html | 4 ++-- app/elements/invitation-link/invitation-link-behavior.html | 4 ++-- app/elements/invitation-link/invitation-link.html | 2 +- app/elements/p2p-network/connection-wrapper.html | 2 +- app/elements/p2p-network/file-transfer-protocol.html | 4 ++-- .../sound-notification/sound-notification-behavior.html | 4 ++-- app/elements/text-sharing/clipboard-behavior.html | 2 +- app/elements/text-sharing/text-input-behavior.html | 4 ++-- app/elements/text-sharing/text-input-dialog.html | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-) diff --git a/app/elements/buddy-finder/buddy-avatar.html b/app/elements/buddy-finder/buddy-avatar.html index 5c968c0..c08b87b 100644 --- a/app/elements/buddy-finder/buddy-avatar.html +++ b/app/elements/buddy-finder/buddy-avatar.html @@ -81,7 +81,7 @@ 'use strict'; Polymer({ is: 'buddy-avatar', - behaviors: [Chat.FileInputBehavior, Chat.TextInputBehavior], + behaviors: [Snapdrop.FileInputBehavior, Snapdrop.TextInputBehavior], properties: { contact: Object, _displayName: { diff --git a/app/elements/file-sharing/file-button-behavior.html b/app/elements/file-sharing/file-button-behavior.html index 0fb0aea..4482007 100644 --- a/app/elements/file-sharing/file-button-behavior.html +++ b/app/elements/file-sharing/file-button-behavior.html @@ -1,8 +1,8 @@ diff --git a/app/elements/file-sharing/file-button.html b/app/elements/file-sharing/file-button.html index 457c5b8..1c11655 100644 --- a/app/elements/file-sharing/file-button.html +++ b/app/elements/file-sharing/file-button.html @@ -8,7 +8,7 @@ 'use strict'; Polymer({ is: 'file-button', - behaviors: [Chat.FileButtonBehavior] + behaviors: [Snapdrop.FileButtonBehavior] }); diff --git a/app/elements/file-sharing/file-drop-behavior.html b/app/elements/file-sharing/file-drop-behavior.html index f3fc973..6e1c20d 100644 --- a/app/elements/file-sharing/file-drop-behavior.html +++ b/app/elements/file-sharing/file-drop-behavior.html @@ -1,8 +1,8 @@ diff --git a/app/elements/file-sharing/file-input-behavior.html b/app/elements/file-sharing/file-input-behavior.html index 4603c63..772632d 100644 --- a/app/elements/file-sharing/file-input-behavior.html +++ b/app/elements/file-sharing/file-input-behavior.html @@ -2,5 +2,5 @@ \ No newline at end of file diff --git a/app/elements/file-sharing/file-receiver.html b/app/elements/file-sharing/file-receiver.html index feb2ae3..0a05253 100644 --- a/app/elements/file-sharing/file-receiver.html +++ b/app/elements/file-sharing/file-receiver.html @@ -48,7 +48,7 @@ (function() { Polymer({ is: 'file-receiver', - behaviors: [Chat.SoundNotificationBehavior], + behaviors: [Snapdrop.SoundNotificationBehavior], attached: function() { this.async(function() { app.conn.addEventListener('file-offer', function(e) { diff --git a/app/elements/file-sharing/file-selection-behavior.html b/app/elements/file-sharing/file-selection-behavior.html index 3641d55..02548dc 100644 --- a/app/elements/file-sharing/file-selection-behavior.html +++ b/app/elements/file-sharing/file-selection-behavior.html @@ -1,7 +1,7 @@ diff --git a/app/elements/p2p-network/connection-wrapper.html b/app/elements/p2p-network/connection-wrapper.html index 8b178ff..8d62b16 100644 --- a/app/elements/p2p-network/connection-wrapper.html +++ b/app/elements/p2p-network/connection-wrapper.html @@ -20,7 +20,7 @@ notify: true }, }, - behaviors: [Chat.FileTransferProtocol], + behaviors: [Snapdrop.FileTransferProtocol], _sendFile: function(toPeer, file) { if (!rtcConnectionSupported(toPeer)) { this.$.ws._sendFile(toPeer, file); diff --git a/app/elements/p2p-network/file-transfer-protocol.html b/app/elements/p2p-network/file-transfer-protocol.html index 0a722b8..b75ead8 100644 --- a/app/elements/p2p-network/file-transfer-protocol.html +++ b/app/elements/p2p-network/file-transfer-protocol.html @@ -1,7 +1,7 @@