Skip to content

Commit e322e2a

Browse files
committed
firebase tuning
1 parent 46e18b8 commit e322e2a

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

my-mind.js

+3-9
Original file line numberDiff line numberDiff line change
@@ -3215,17 +3215,11 @@ MM.Backend.Firebase._recursiveRefMerge = function(ref, oldData, newData) {
32153215

32163216
}
32173217

3218-
if (Object.keys(updateObject).length) {
3219-
console.log("Update set for " + ref, updateObject);
3220-
ref.update(updateObject);
3221-
}/* else {
3222-
console.log("No update needed for " + ref);
3223-
} */
3224-
3218+
if (Object.keys(updateObject).length) { ref.update(updateObject); }
32253219
}
32263220

32273221
MM.Backend.Firebase._listenStart = function(data, id) {
3228-
if (this._current.id && this.current.id == id) { return; }
3222+
if (this._current.id && this._current.id == id) { return; }
32293223

32303224
this._listenStop();
32313225
this._current.id = id;
@@ -4361,7 +4355,7 @@ MM.UI.Backend.Firebase.load = function() {
43614355

43624356
MM.UI.Backend.Firebase._load = function(id) {
43634357
MM.App.setThrobber(true);
4364-
/* FIXME posere se kdyz zmenim jeden firebase na jiny */
4358+
/* FIXME posere se kdyz zmenim jeden firebase na jiny, mozna */
43654359
this._backend.load(id).then(
43664360
this._loadDone.bind(this),
43674361
this._error.bind(this)

src/backend.firebase.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,11 @@ MM.Backend.Firebase._recursiveRefMerge = function(ref, oldData, newData) {
145145

146146
}
147147

148-
if (Object.keys(updateObject).length) {
149-
console.log("Update set for " + ref, updateObject);
150-
ref.update(updateObject);
151-
}/* else {
152-
console.log("No update needed for " + ref);
153-
} */
154-
148+
if (Object.keys(updateObject).length) { ref.update(updateObject); }
155149
}
156150

157151
MM.Backend.Firebase._listenStart = function(data, id) {
158-
if (this._current.id && this.current.id == id) { return; }
152+
if (this._current.id && this._current.id == id) { return; }
159153

160154
this._listenStop();
161155
this._current.id = id;

src/ui.backend.firebase.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ MM.UI.Backend.Firebase.load = function() {
126126

127127
MM.UI.Backend.Firebase._load = function(id) {
128128
MM.App.setThrobber(true);
129-
/* FIXME posere se kdyz zmenim jeden firebase na jiny */
129+
/* FIXME posere se kdyz zmenim jeden firebase na jiny, mozna */
130130
this._backend.load(id).then(
131131
this._loadDone.bind(this),
132132
this._error.bind(this)

0 commit comments

Comments
 (0)