Sha256: 24043a7edc850f9801769660fe977b8710595313f2ad0f7e65a1b103c372ac29

Contents?: true

Size: 1.97 KB

Versions: 5

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=cc233bfb40ea73a46f537e924f56d695838a1e91746904bfe0357aa1dc08fb32: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"%  jW׀-$8|E52V-N:idI"Ecc233bfb40ea73a46f537e924f56d695838a1e91746904bfe0357aa1dc08fb32;F:
mtimel+'V

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fae-rails-1.3.0 spec/dummy/tmp/cache/assets/profile/sprockets/v3.0/N5IjJ5ZHa3a9iulfUKipwnenc1M7CaZRGq4otIpLj2c.cache
fae-rails-1.2.5 spec/dummy/tmp/cache/assets/profile/sprockets/v3.0/N5IjJ5ZHa3a9iulfUKipwnenc1M7CaZRGq4otIpLj2c.cache
fae-rails-1.2.4 spec/dummy/tmp/cache/assets/profile/sprockets/v3.0/N5IjJ5ZHa3a9iulfUKipwnenc1M7CaZRGq4otIpLj2c.cache
fae-rails-1.2.3 spec/dummy/tmp/cache/assets/profile/sprockets/v3.0/N5IjJ5ZHa3a9iulfUKipwnenc1M7CaZRGq4otIpLj2c.cache
fae-rails-1.2.2 spec/dummy/tmp/cache/assets/profile/sprockets/v3.0/N5IjJ5ZHa3a9iulfUKipwnenc1M7CaZRGq4otIpLj2c.cache