Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit ff875bc

Browse files
alexsalesJacob Wenger
authored andcommitted
Removed unused randomRoomId variable in docs (#811)
1 parent 633e9ab commit ff875bc

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docs/guide/introduction-to-angularfire.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ var app = angular.module("sampleApp", ["firebase"]);
102102
app.factory("chatMessages", ["$firebaseArray",
103103
function($firebaseArray) {
104104
// create a reference to the database location where we will store our data
105-
var randomRoomId = Math.round(Math.random() * 100000000);
106105
var ref = firebase.database().ref();
107106

108107
// this uses AngularFire to create the synchronized array

docs/guide/synchronized-objects.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ app.factory("Profile", ["$firebaseObject",
9797
function($firebaseObject) {
9898
return function(username) {
9999
// create a reference to the database node where we will store our data
100-
var randomRoomId = Math.round(Math.random() * 100000000);
101100
var ref = firebase.database().ref("rooms").push();
102101
var profileRef = ref.child(username);
103102

@@ -164,9 +163,8 @@ var app = angular.module("sampleApp", ["firebase"]);
164163
app.factory("Profile", ["$firebaseObject",
165164
function($firebaseObject) {
166165
return function(username) {
167-
// create a reference to the database where we will store our data
168-
var randomRoomId = Math.round(Math.random() * 100000000);
169-
var ref = firebase.database().ref().child("rooms").push();
166+
// create a reference to the database node where we will store our data
167+
var ref = firebase.database().ref("rooms").push();
170168
var profileRef = ref.child(username);
171169

172170
// return it as a synchronized object

0 commit comments

Comments
 (0)