Sha256: 008ad74851d232d817d24a75290b0865a4958bc99b023963af3cee6e8dd751c9
Contents?: true
Size: 399 Bytes
Versions: 8
Compression:
Stored size: 399 Bytes
Contents
// The visit function is used to direct the user to the given URL. It is provided as an abstraction as the redirection // is handled differently depending on whether or not Turbolinks is enabled. // // Trestle.visit("/admin/pages"); // if (Trestle.turbolinks) { Trestle.visit = function(url) { Turbolinks.visit(url); }; } else { Trestle.visit = function(url) { document.location = url; }; }
Version data entries
8 entries across 8 versions & 1 rubygems