From e88901303df7d2ccd4efd214fb3e34f8e0f5c2e2 Mon Sep 17 00:00:00 2001 From: David East Date: Thu, 29 Dec 2016 12:53:06 -0800 Subject: [PATCH] feat(release): 0.6 release --- examples/index.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/examples/index.html b/examples/index.html index 413678d..843eb08 100644 --- a/examples/index.html +++ b/examples/index.html @@ -24,10 +24,13 @@ var ref = firebase.database().ref(); var peopleRef = ref.child("people"); var queryRef = querybase.ref(peopleRef, ['name', 'age', 'location']); - + btnSeed.addEventListener('click', function(e) { peopleRef.remove(); - addPerson('David_East', 27, 'SF'); + addPerson('David', 27, 'SF'); + addPerson('Daniel', 34, 'SF'); + addPerson('Dan', 93, 'DEN'); + addPerson('Devin', 27, 'SF'); addPerson('Shannon', 28, 'SF'); addPerson('Coco', 1, 'SF'); addPerson('Cash', 3, 'SF'); @@ -36,13 +39,13 @@ addPerson('Molly', 6, 'SF'); addPerson('Mambo', 4, 'DEN'); }); - + function listen(ref) { - ref.on('value', function(snap) { + ref.on('value', function(snap) { console.log(snap.val()); }); } - + function addPerson(name, age, location, weight) { queryRef.push({ name: name, @@ -50,7 +53,7 @@ location: location }); } - +