This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://bitovi.com/blog/2012/04/faster-jquery-event-fix.html | |
// https://gist.github.com/2954434 (original: https://gist.github.com/2377196) | |
// http://jsperf.com/jquery-event-fix/6 | |
// IE 8 has Object.defineProperty but it only defines DOM Nodes. According to | |
// http://kangax.github.com/es5-compat-table/#define-property-ie-note | |
// All browser that have Object.defineProperties also support Object.defineProperty properly | |
Object.defineProperties && (function (document, $){ | |
var |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jsfiddle: http://jsfiddle.net/Pj7G4/1/ | |
var store = indexeddbStore("user") | |
store.put({ name: "bob" }, "bob", function (err, result) { | |
store.get("bob", function (err, user) { | |
console.log(user.name === "bob") | |
}) | |
}) |