Sha256: c0a470d0c5664aad28f226a66f915545c852f4dcc750886c257373116c450e2b

Contents?: true

Size: 353 Bytes

Versions: 1

Compression:

Stored size: 353 Bytes

Contents

/*
 * Allows for single window.scroll bound events
 * window.scroll $.Callbacks
 */
Globals.scroll = $.Callbacks('unique');

// Bind window.scroll and fire all callbacks
$(window).on('scroll', function(ev){

    var fire_scroll_callbacks = function(ev){
        Globals.scroll.fire(ev);
        update_data();
    };

    fire_scroll_callbacks(ev);

});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sadui-0.0.4 vendor/assets/javascripts/sadui/helpers/single_scroll.js