mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-22 07:04:53 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user