Code Monkey home page Code Monkey logo

backbone.couchdb.js's People

Contributors

btdashboard avatar gahen avatar grampelberg avatar henchan avatar jordoncm avatar timjb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

backbone.couchdb.js's Issues

Method for creating model instances not exactly what I expected

HI there. I'm new to Backbone so my assumptions might be wrong. I was expecting to be able to ....

var Group = Backbone.couch.Model.extend({_db:Backbone.couch.db('myDatabaseName')})
var gOne = new Group("someCouchDocId")
gOne.fetch()

The above results in a call to .openDoc() with no defined ID... So we actually have to put the ID of the model instance in the model ...

var Group = Backbone.couch.Model.extend({id:"someCouchDocId", _db:Backbone.couch.db('myDatabaseName')})
var gOne = new Group()
gOne.fetch()

Am I doing something wrong, or is this the expected behavior, or is there a bug somewhere? I'm not sure...

Any javascript examples of using backbone.couchdb.js?

I'm new to Backbone so this connector immediately appeals to me because of its simplicity. I think I'm starting to understand it but not have any example of how its used is making this a steep learning curve. Unfortunately I don't speak coffee script so the grizzly example isn't very useful to me.

Does anyone know of an example of this library being used in the context of javascript?

Cannot read property 'update' of undefined

Hey guys,

Backbone 0.9.10 seems to have broken part of backbone.couch.collection.fetch(). I get an error saying "Uncaught TypeError: Cannot read property 'update' of undefined" when i try to run a fetch() from a collection. Also the fetch succeeds, i get a response.

If i use 0.9.2 (the one in the repo) then there is no issue but i thought i would flag this with you.

Cheers
MB

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.