Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Work with models in your JavaScript
JavaScript CSS

Merge pull request #31 from olly/pass-model-to-sort-by

Yield the Model to the sortBy callback
latest commit 5feb0bde0d
@benpickles authored
Failed to load latest commit information.
dist Version 0.11.0.
docs Use make and uglify.
src Don't change the value of this for the comparator function.
test Don't change the value of this for the comparator function.
CHANGELOG.markdown Version 0.11.0.
Gemfile Use make and uglify.
Gemfile.lock
LICENSE 2012 =]
Makefile Don't need/want Model.Log.
README.markdown
VERSION Version 0.11.0.
index.html Version 0.11.0.

README.markdown

js-model

js-model is a library that allows you to work with models in your JavaScript.

In brief

Declare a model class:

var Todo = Model("todo")

Now create and manipulate model instances:

var todo = new Todo({ text: "do it" })
todo.attr("when", "now")
todo.save()

Documentation / download / more

For notes on getting started, persisting via REST or localStorage, using with Sammy, API documentation and download links visit the js-model docs site.

Suggestions / questions / issues / comments

Feel free to use Github issues for any of the above.

Copyright

Copyright 2010-2012 Ben Pickles. See LICENSE for details.

Something went wrong with that request. Please try again.