Comparing version 0.1.6 to 0.1.7
16
index.js
@@ -457,2 +457,10 @@ | ||
if (typeof callback !== 'function') { | ||
callback = function() {}; | ||
} | ||
if (typeof cancelCallback !== 'function') { | ||
cancelCallback = function() {}; | ||
} | ||
var callbackHandler = function(snap, prev) { | ||
@@ -510,2 +518,10 @@ | ||
if (typeof successCallback !== 'function') { | ||
successCallback = function() {}; | ||
} | ||
if (typeof failureCallback !== 'function') { | ||
failureCallback = function() {}; | ||
} | ||
this._ref.once(eventType, function(snap) { | ||
@@ -512,0 +528,0 @@ |
{ | ||
"name": "fireproof", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Promises for Firebase objects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
27550
691