« Back
Sammy.Application setLocationProxy ( new_proxy )
Sets the location proxy for the current app. By default this is set to
a new Sammy.DefaultLocationProxy on initialization. However, you can set
the location_proxy inside you're app function to give your app a custom
location mechanism. See Sammy.DefaultLocationProxy and Sammy.DataLocationProxy
for examples.
setLocationProxy() takes an initialized location proxy.
Example
// to bind to data instead of the default hash;
var app = $.sammy(function() {
this.setLocationProxy(new Sammy.DataLocationProxy(this));
});
comments powered by Disqus