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 */ 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...