Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	firebase.ios.js
  • Loading branch information
EddyVerbruggen committed Apr 9, 2016
2 parents 638c96c + 609af4a commit 247dd31
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions firebase.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,18 @@ firebase.setValue = function (path, val) {
});
};

firebase.update = function (path, val) {
return new Promise(function (resolve, reject) {
try {
instance.child(path).updateChildren(firebase.toHashMap(val));
resolve();
} catch (ex) {
console.log("Error in firebase.update: " + ex);
reject(ex);
}
});
};

firebase.query = function (updateCallback, path, options) {
return new Promise(function (resolve, reject) {
try {
Expand Down

0 comments on commit 247dd31

Please sign in to comment.