Sha256: 398374d7bafe7f79b457eb12edaf8ca3467d941726512c6287b334b3f45c757b
Contents?: true
Size: 577 Bytes
Versions: 3
Compression:
Stored size: 577 Bytes
Contents
// On page load, look for any elements with a data-stackview-init attribute. // That data attribute is expected to include a JSON serialized hash that // is an init argument to the stackView() initializer. // We will initialize element with that argument. (function( $ ) { // page:load for turbolinks too, not sure if it really works right. $(document).on('ready page:load', function () { $("[data-stackview-init]").each(function(i, element) { element = $(element); element.stackView(element.data("stackviewInit")); }); }); })( jQuery );
Version data entries
3 entries across 3 versions & 2 rubygems