Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.2.3
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (17 sloc) 0.572 kb

persistence.jquery.js

persistence.jquery.js is a jquery plugin for persistence.js that allows the usage of jquery notation for crossbrowser-access of persistencejs entities.

Example

Simple example:

var User = persistence.define('User', {
  firstname: "TEXT",
  lastname: "TEXT"
});

var user = new User({firstname: "Joe", lastname: "Doo"});

// setter   
$(user).data('firstname', "Mike") 

// getter
console.log($(user).data('firstname')); // => Mike

You can find more examples in test/test.persistence-jquery.js.

Jump to Line
Something went wrong with that request. Please try again.