Sha256: 1de1cd17d5492a4aed14347ec2e822251dfac1b9c4d7abbfda3626dcdd9ffd0f

Contents?: true

Size: 1.13 KB

Versions: 31

Compression:

Stored size: 1.13 KB

Contents

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

;(function(undefined){
  if (String.prototype.trim === undefined) // fix for iOS 3.2
    String.prototype.trim = function(){ return this.replace(/^\s+/, '').replace(/\s+$/, '') }

  // For iOS 3.x
  // from https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reduce
  if (Array.prototype.reduce === undefined)
    Array.prototype.reduce = function(fun){
      if(this === void 0 || this === null) throw new TypeError()
      var t = Object(this), len = t.length >>> 0, k = 0, accumulator
      if(typeof fun != 'function') throw new TypeError()
      if(len == 0 && arguments.length == 1) throw new TypeError()

      if(arguments.length >= 2)
       accumulator = arguments[1]
      else
        do{
          if(k in t){
            accumulator = t[k++]
            break
          }
          if(++k >= len) throw new TypeError()
        } while (true)

      while (k < len){
        if(k in t) accumulator = fun.call(undefined, accumulator, t[k], k, t)
        k++
      }
      return accumulator
    }

})()

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sports_db-0.2.19 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.18 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.17 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.16 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.15 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.14 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.13 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.12 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.11 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.10 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.9 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.8 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.7 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.6 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.5 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.4 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.3 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.2 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2.1 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js
sports_db-0.2 app/assets/javascripts/libs/zepto-v1.0rc1/polyfill.js