Sha256: 0e9aa20b4373395d3c7188caa393a54f5177abc6dcc2dee577967176d046cef9

Contents?: true

Size: 1.04 KB

Versions: 11

Compression:

Stored size: 1.04 KB

Contents

/*
 * jQuery doTimeout: Like setTimeout, but better! - v1.0 - 3/3/2010
 * http://benalman.com/projects/jquery-dotimeout-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($){var a={},c="doTimeout",d=Array.prototype.slice;$[c]=function(){return b.apply(window,[0].concat(d.call(arguments)))};$.fn[c]=function(){var f=d.call(arguments),e=b.apply(this,[c+f[0]].concat(f));return typeof f[0]==="number"||typeof f[1]==="number"?this:e};function b(l){var m=this,h,k={},g=l?$.fn:$,n=arguments,i=4,f=n[1],j=n[2],p=n[3];if(typeof f!=="string"){i--;f=l=0;j=n[1];p=n[2]}if(l){h=m.eq(0);h.data(l,k=h.data(l)||{})}else{if(f){k=a[f]||(a[f]={})}}k.id&&clearTimeout(k.id);delete k.id;function e(){if(l){h.removeData(l)}else{if(f){delete a[f]}}}function o(){k.id=setTimeout(function(){k.fn()},j)}if(p){k.fn=function(q){if(typeof p==="string"){p=g[p]}p.apply(m,d.call(n,i))===true&&!q?o():e()};o()}else{if(k.fn){j===undefined?e():k.fn(j===false);return true}else{e()}}}})(jQuery);

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
c2-0.1.13 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js
c2-0.1.12 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js
c2-0.1.11 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js
c2-0.1.10 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js
c2-0.1.9 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js
c2-0.1.8 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js
c2-0.1.7 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js
c2-0.1.6 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js
c2-0.1.5 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js
c2-0.1.4 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js
c2-0.1.3 public/javascripts/c2/lib/jquery.ba-dotimeout.min.js