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

Commit

Permalink
Update null doesn't remove key #229
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Jan 2, 2017
1 parent 323cb07 commit 0abeb16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion firebase.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ firebase.toHashMap = function(obj) {
var node = new java.util.HashMap();
for (var property in obj) {
if (obj.hasOwnProperty(property)) {
if (obj[property] !== null) {
if (obj[property] === null) {
node.put(property, null);
} else {
switch (typeof obj[property]) {
case 'object':
node.put(property, firebase.toHashMap(obj[property], node));
Expand Down

0 comments on commit 0abeb16

Please sign in to comment.