From b7ab17322a13a2b277586aae53f9c336669151ab Mon Sep 17 00:00:00 2001 From: Junji Shiokawa Date: Sat, 16 Sep 2017 02:19:56 +0900 Subject: [PATCH 1/2] fixes typo --- firebase-storage-multiupload.html | 8 ++++---- firebase-storage-ref.html | 2 +- firebase-storage-upload-task.html | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/firebase-storage-multiupload.html b/firebase-storage-multiupload.html index 09f030b..d1790b5 100644 --- a/firebase-storage-multiupload.html +++ b/firebase-storage-multiupload.html @@ -52,14 +52,14 @@ * * file-task * - * + * path="{{path}}"> * * ``` * @@ -73,14 +73,14 @@ * * * * ``` * diff --git a/firebase-storage-ref.html b/firebase-storage-ref.html index 4fcaf55..8b9952a 100644 --- a/firebase-storage-ref.html +++ b/firebase-storage-ref.html @@ -160,7 +160,7 @@ * Stores a string in a given format */ putString: function(data, format, metadata) { - this.uploadTask = this.__put(null, data, format, metadata); + this.uploadTask = this.__putString(null, data, format, metadata); return this.uploadTask; }, diff --git a/firebase-storage-upload-task.html b/firebase-storage-upload-task.html index 0a3f7dc..2dfdf90 100644 --- a/firebase-storage-upload-task.html +++ b/firebase-storage-upload-task.html @@ -18,14 +18,14 @@ * * For example: * - * + * path="{{path}}"> * * It has to get the upload task from either the firebase-storage-multiupload or firebase-storage-ref * and produces data like bytes-transferred, total-bytes, states, etc... From c5ba4ecc7530eb8c99a60ed24f1eafa90c1303d5 Mon Sep 17 00:00:00 2001 From: Junji Shiokawa Date: Sat, 16 Sep 2017 12:26:59 +0900 Subject: [PATCH 2/2] suppress log messages --- firebase-storage-behavior.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/firebase-storage-behavior.html b/firebase-storage-behavior.html index 63569be..9fa8b3a 100644 --- a/firebase-storage-behavior.html +++ b/firebase-storage-behavior.html @@ -50,6 +50,14 @@ forceUnique: { type: Boolean, value: false + }, + + /** + * When true, will perform detailed logging. + */ + log: { + type: Boolean, + value: false } }, @@ -88,7 +96,17 @@ return storage.ref(path); }, - __pathChanged: function(path) {} + __pathChanged: function(path) {}, + + /** + * A wrapper around `console.log`. + */ + _log: function() { + if (this.log) { + console.log.apply(console, arguments); + } + } + }; /** @polymerBehavior */