From 4f33389566582e4a75c4d3b09d09c944927a1c7a Mon Sep 17 00:00:00 2001 From: Jake Johnson Date: Fri, 7 Nov 2014 17:12:09 -0800 Subject: [PATCH] Fix "Uncaught ReferenceError: data is not defined" error when removing data --- firebase-element.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firebase-element.html b/firebase-element.html index 310df34..f05d5ea 100644 --- a/firebase-element.html +++ b/firebase-element.html @@ -377,7 +377,7 @@

My Firebase Data

var key = snapshot.name(); if (this.data instanceof Array) { this.data.splice(key, 1); - if (data.length == 0) { + if (this.data.length == 0) { this._setData(null); } } else if (this.data) {