Hash Bind
A dual-binding library for window.location.hash
Example
var Hash = ;var Result = ; var hash = window; // Simple usage as a key-value store:var someVal = hash;hash; // Better still, bind the value:var bound = hash ; // Maybe you wanted an integer setting:var bound = hash ; // Maybe you wanted a default:var bound = hash ; // You can still set it by name:hash; // You can also set it through the bound reference:bound; // If you care to handle parse errors when settingy our values (rather thanhave them thrown):bound;