« Back
Sammy.Application run ( start_url )
Actually starts the application's lifecycle. run() should be invoked
within a document.ready block to ensure the DOM exists before binding events, etc.
Example
var app = $.sammy(function() { ... }); // your application
$(function() { // document.ready
app.run();
});
Arguments
start_urlOptionally, a String can be passed which the App will redirect to after the events/routes have been bound.
comments powered by Disqus