mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-27 10:16:16 -04:00
Rename global variable 'Chat' to 'Snapdrop'
Initially a lot of code was copied from another project. This lead to confusing naming conventions.
This commit is contained in:
parent
7ed10a7ba4
commit
78dd776426
15 changed files with 24 additions and 24 deletions
|
@ -8,7 +8,7 @@
|
|||
style.top = '-10000px';
|
||||
document.body.appendChild(copyTextarea);
|
||||
|
||||
window.Chat.ClipboardBehavior = {
|
||||
window.Snapdrop.ClipboardBehavior = {
|
||||
copyToClipboard: function(content) {
|
||||
copyTextarea.value = content;
|
||||
var range = document.createRange();
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<link rel="import" href="text-input-dialog.html">
|
||||
<script>
|
||||
'use strict';
|
||||
window.Chat = window.Chat || {};
|
||||
window.Snapdrop = window.Snapdrop || {};
|
||||
(function() {
|
||||
var textInput = Polymer.Base.create('text-input-dialog');
|
||||
textInput.className = 'textInput';
|
||||
document.body.appendChild(textInput);
|
||||
Chat.TextInputBehavior = {
|
||||
Snapdrop.TextInputBehavior = {
|
||||
properties: {
|
||||
contact: Object,
|
||||
},
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
|
||||
Polymer({
|
||||
is: 'text-input-dialog',
|
||||
behaviors: [Chat.ClipboardBehavior, Chat.SoundNotificationBehavior],
|
||||
behaviors: [Snapdrop.ClipboardBehavior, Snapdrop.SoundNotificationBehavior],
|
||||
properties: {
|
||||
textToSend: {
|
||||
type: String
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue