@@ -22,17 +22,17 @@ var ReactFireMixin = {
22
22
/* BINDING */
23
23
/*************/
24
24
/* Creates a binding between Firebase and the inputted bind variable as an array */
25
- bindAsArray : function ( firebaseRef , bindVar ) {
26
- this . _bind ( firebaseRef , bindVar , true ) ;
25
+ bindAsArray : function ( firebaseRef , bindVar , cancelCallback ) {
26
+ this . _bind ( firebaseRef , bindVar , cancelCallback , true ) ;
27
27
} ,
28
28
29
29
/* Creates a binding between Firebase and the inputted bind variable as an object */
30
- bindAsObject : function ( firebaseRef , bindVar ) {
31
- this . _bind ( firebaseRef , bindVar , false ) ;
30
+ bindAsObject : function ( firebaseRef , bindVar , cancelCallback ) {
31
+ this . _bind ( firebaseRef , bindVar , cancelCallback , false ) ;
32
32
} ,
33
33
34
34
/* Creates a binding between Firebase and the inputted bind variable as either an array or object */
35
- _bind : function ( firebaseRef , bindVar , bindAsArray ) {
35
+ _bind : function ( firebaseRef , bindVar , cancelCallback , bindAsArray ) {
36
36
this . _validateBindVar ( bindVar ) ;
37
37
38
38
var errorMessage , errorCode ;
@@ -61,7 +61,7 @@ var ReactFireMixin = {
61
61
newState [ bindVar ] = dataSnapshot . val ( ) ;
62
62
}
63
63
this . setState ( newState ) ;
64
- } . bind ( this ) ) ;
64
+ } . bind ( this ) , cancelCallback ) ;
65
65
} ,
66
66
67
67
/* Removes the binding between Firebase and the inputted bind variable */
0 commit comments