A lightweight html5 history library for ender.js
JavaScript
Latest commit 78dbb3c Sep 23, 2013 @iamdustan Do not use
Failed to load latest commit information.
src
.gitignore Initial commit. Barebones html5 history with pushState Feb 22, 2012
Makefile Initial commit. Barebones html5 history with pushState Feb 23, 2012
README.md Do not use Sep 23, 2013
arbiter.js Remove jquery ajax.compat, bump version, pass in your own success fun… Mar 9, 2012
arbiter.min.js
build.js Hey, there’s a legitimate build Feb 23, 2012
license.txt Paste in the MIT Feb 23, 2012
package.json Remove jquery ajax.compat, bump version, pass in your own success fun… Mar 9, 2012

README.md

be the arbiter of your history

Arbiter is a super-lightweight enhancement library for your html5 apps. This isn’t a catch-all-own-the-world solution like History.js by balupton

usage

DO NOT USE. This project is not maintained.

To be used with ender and being dependent upon a dom utility, event, and ajax libs, it’s as simple as calling the $.change function with the path you’d like to load.

Basic usage

$('body').delegate('#slider a', 'click', function (e) {
  e.stop()
  $.change(this.href)
})

Set your own success callback and animation

$('body').delegate('#slider a', 'click', function (e) {
  e.stop()
  $.change(this.href, function (data) {
    // do cool animation stuff here
  })
})

Set ajax method and type

$('body').delegate('#slider a', 'click', function (e) {
  e.stop()
  $.change(this.href, { method: 'POST', type: 'json', function (data) {
    // do yo’ thang with json
  })
})

todo

  • Test reverse callbacks (for history.back())
  • Clean up code
  • Write tests
  • Test browsers
  • Eat a doughnut