Sha256: 23c1f6f3c8e8a572acf7cdd0fbcdbb0a1cbaae3561631a608e4b6b569a34500c

Contents?: true

Size: 1.97 KB

Versions: 4

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=e93c1a17c3732a509d404e5238876577549343d2a4e9e2ab57884f036fade29f: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þ ä¸,’h‘cNXNù=Å•YÙ!F‡:lengthi•:dependencies_digest"%8é1;¶ÓU…³ø§;dQùv"–Zr¢}lÉ`܃eÞ:idI"Ee93c1a17c3732a509d404e5238876577549343d2a4e9e2ab57884f036fade29f;F:
mtimel+%‹BV

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fae-rails-1.3.1 spec/dummy/tmp/cache/assets/test/sprockets/v3.0/-LtHcBRMYv2Ju2Xs4RP8ixu2je-wfai4YjVRPzrtOqY.cache
fae-rails-1.3.0 spec/dummy/tmp/cache/assets/test/sprockets/v3.0/-LtHcBRMYv2Ju2Xs4RP8ixu2je-wfai4YjVRPzrtOqY.cache
fae-rails-1.2.5 spec/dummy/tmp/cache/assets/test/sprockets/v3.0/-LtHcBRMYv2Ju2Xs4RP8ixu2je-wfai4YjVRPzrtOqY.cache
fae-rails-1.2.4 spec/dummy/tmp/cache/assets/test/sprockets/v3.0/-LtHcBRMYv2Ju2Xs4RP8ixu2je-wfai4YjVRPzrtOqY.cache