wanna-be backbone.js
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.index.coffee.swo
.index.coffee.swp
README.markdown
index.coffee
index.js
neckbrace.coffee
neckbrace.js

README.markdown

Neckbrace.js

Neckbrace.js is inspired from Backbone.js. Some of the code is taken straight from the Backbone.js source

It gives some methods for helping you create JavaScript web applications.

Diferences from backbone.js

  • The main difference is Neckbrace uses real javascript objects and arrays, not nested ones
  • Functions are called based off the __cid of the object or array.
  • neckbrace models have meta elements like _m(obj).el
  • call polymorphic functions like _p(obj).myfunction() this will look up the type of the meta object of obj (like _m(ojb).type.myFunction o)
  • Copied this way of doing oop from Underscore.js
  • There is an object called _e which is an object like _ from underscore.js a bunch of handy methods are stored there. Still working out kinks

##Thoughts. people.phones[0].extension peopele.get("phones").get(1).get("extension") people.attributes.phones.collection[0].extension listing._.save() _t(record).save()

update: moving to index.coffee