Skip to content

Instantly share code, notes, and snippets.

@RubaXa
RubaXa / jquery.event.fix.js
Created June 19, 2012 14:13 — forked from justinbmeyer/fastfix.js
Makes jQuery.event.fix fast
// 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
@RubaXa
RubaXa / 0example.js
Created April 24, 2012 06:13 — forked from Raynos/0example.js
IndexedDB API made better
// 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")
})
})