backbone icon indicating copy to clipboard operation
backbone copied to clipboard

unable to sync model or collection

Open tohash opened this issue 11 years ago • 0 comments

 class Entities.Customers extends Backbone.PubNub.Collection                                      
      paramRoot: 'customer'
      model:  Entities.Customer                                                                  
      url:  'api/customers'                                                                    
      name:  'mopaca:customers' 

customers = new Entities.Customers

customers.fetch() //throws 'Could not sync: undefined is not a function'

/* console output
*  read 
*  Customers {length: 0, models: Array[0], _byId: Object, uuid: "b9dd7e17-1fa0-4141-9920-*  450c9637d29c", channel: "backbone-collection-mopaca:customers"…}
*
*  Object {parse: true, success: function, error: function, beforeSend: function, complete: * function}
*  function e(a){return Hb(a)} pubnub.backbone.js?body=1:90
* Could not sync: undefined is not a function 
* undefined
*/

tohash avatar Jul 08 '14 13:07 tohash