Sha256: 2c36fe6082c3956e6dd4d0fb6c83104e8e8427bc48094d2db7fb6440639650a5

Contents?: true

Size: 581 Bytes

Versions: 3

Compression:

Stored size: 581 Bytes

Contents

//     Zepto.js
//     (c) 2010-2014 Thomas Fuchs
//     Zepto.js may be freely distributed under the MIT license.

;(function($){
  var cache = [], timeout

  $.fn.remove = function(){
    return this.each(function(){
      if(this.parentNode){
        if(this.tagName === 'IMG'){
          cache.push(this)
          this.src = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs='
          if (timeout) clearTimeout(timeout)
          timeout = setTimeout(function(){ cache = [] }, 60000)
        }
        this.parentNode.removeChild(this)
      }
    })
  }
})(Zepto)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
h2ocube_rails_assets-0.1.1 vendor/assets/javascripts/zepto/assets.js
h2ocube_rails_assets-0.1.0 vendor/assets/javascripts/zepto/assets.js
h2ocube_rails_assets-0.0.30 vendor/assets/javascripts/zepto/assets.js