Sha256: 2fb07536f9765ca7e941b951b7689f3df919db977185f35bc30b2eff971523dc

Contents?: true

Size: 1.97 KB

Versions: 3

Compression:

Stored size: 1.97 KB

Contents

{:uriI"file:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/extensions.js?type=application/javascript&pipeline=self&id=bb115b14b24fdc8e01f413439c6b4c0ac43afd68b3ab870391f81ee35442d3d5:ET:load_pathI"G/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts;T:
filenameI"Y/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/extensions.js;T:	nameI"fae/extensions;T:logical_pathI"fae/extensions.self.js;T:content_typeI"application/javascript;T:sourceI"//Smart resizer a la paul irish
(function($,sr){

  // debouncing function from John Hann
  // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
  var debounce = function (func, threshold, execAsap) {
      var timeout;

      return function debounced () {
          var obj = this, args = arguments;
          function delayed () {
              if (!execAsap)
                  func.apply(obj, args);
              timeout = null;
          }

          if (timeout)
              clearTimeout(timeout);
          else if (execAsap)
              func.apply(obj, args);

          timeout = setTimeout(delayed, threshold || 100);
      };
  };
  // smartresize
  jQuery.fn[sr] = function(fn){  return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };

  /* usage:
    $(window).smartresize(function(){
      [code that takes it easy...]
    });
  */
})(jQuery,'smartresize');
;T:
metadata{:dependencieso:Set:
@hash{	I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"gfile-digest:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/extensions.js;TT:
requiredo;;{:stubbedo;;{:
linkso;;{:charsetI"
utf-8;F:digest"%/[4 ,hcNXN=ŕY!F:lengthi:dependencies_digest"%?	IéSOF'EaNGLJ:idI"Ebb115b14b24fdc8e01f413439c6b4c0ac43afd68b3ab870391f81ee35442d3d5;F:
mtimel+%BV

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fae-rails-1.2.4 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wDew-HuUuci9Wr2nvd3CeCLSX2hl_7vwmc43WEyC5MI.cache
fae-rails-1.2.3 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wDew-HuUuci9Wr2nvd3CeCLSX2hl_7vwmc43WEyC5MI.cache
fae-rails-1.2.2 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wDew-HuUuci9Wr2nvd3CeCLSX2hl_7vwmc43WEyC5MI.cache