Sha256: 3c49ab6f09d3836e9a189716de514e1bae33924ccdf01a44a2de9c01b82a5e20
Contents?: true
Size: 524 Bytes
Versions: 58
Compression:
Stored size: 524 Bytes
Contents
Blacklight = function() { var buffer = new Array; return { onLoad: function(func) { buffer.push(func); }, activate: function() { for(var i = 0; i < buffer.length; i++) { buffer[i].call(); } } } }(); // turbolinks triggers page:load events on page transition // If app isn't using turbolinks, this event will never be triggered, no prob. $(document).on('page:load', function() { Blacklight.activate(); }); $(document).ready(function() { Blacklight.activate(); });
Version data entries
58 entries across 58 versions & 1 rubygems