Вход Регистрация
Файл: src/public/plugins/pickadate/legacy.js
Строк: 140
<?php
/*jshint
   asi: true,
   unused: true,
   boss: true,
   loopfunc: true,
   eqnull: true
 */


/*!
 * Legacy browser support
 */


// Map array support
if ( ![].map ) {
    Array.
prototype.map = function ( callbackself ) {
        var array = 
thislen = array.lengthnewArray = new Array( len )
        for ( var 
0leni++ ) {
            if ( 
i in array ) {
                
newArray] = callback.callself, array[ ], i, array )
            }
        }
        return 
newArray
    
}
}


// Filter array support
if ( ![].filter ) {
    Array.
prototype.filter = function( callback ) {
        if ( 
this == null ) throw new TypeError()
        var 
Objectthis ), len t.length >>> 0
        
if ( typeof callback != 'function' ) throw new TypeError()
        var 
newArray = [], thisp arguments]
        for ( var 
0leni++ ) {
          if ( 
i in t ) {
            var 
val t]
            if ( 
callback.callthispvali) ) newArray.pushval )
          }
        }
        return 
newArray
    
}
}


// Index of array support
if ( ![].indexOf ) {
    Array.
prototype.indexOf = function( searchElement ) {
        if ( 
this == null ) throw new TypeError()
        var 
Objectthis ), len t.length >>> 0
        
if ( len === ) return -1
        
var 0
        
if ( arguments.length ) {
            
Numberarguments] )
            if ( 
!= ) {
                
0
            
}
            else if ( 
!== && != Infinity && != -Infinity ) {
                
= ( || -) * Math.floorMath.abs) )
            }
        }
        if ( 
>= len ) return -1
        
var >= Math.maxlen Math.abs), )
        for ( ; 
lenk++ ) {
            if ( 
k in t && t] === searchElement ) return k
        
}
        return -
1
    
}
}


/*!
 * Cross-Browser Split 1.1.1
 * Copyright 2007-2012 Steven Levithan <stevenlevithan.com>
 * Available under the MIT License
 * http://blog.stevenlevithan.com/archives/cross-browser-split
 */
var nativeSplit String.prototype.splitcompliantExecNpcg = /()??/.exec('')[1] === undefined
String
.prototype.split = function(separatorlimit) {
    var 
str this
    
if (Object.prototype.toString.call(separator) !== '[object RegExp]') {
        return 
nativeSplit.call(strseparatorlimit)
    }
    var 
output = [],
        
flags = (separator.ignoreCase 'i' '') +
                (
separator.multiline  'm' '') +
                (
separator.extended   'x' '') +
                (
separator.sticky     'y' ''),
        
lastLastIndex 0,
        
separator2matchlastIndexlastLength
    separator 
= new RegExp(separator.sourceflags 'g')
    
str += ''
    
if (!compliantExecNpcg) {
        
separator2 = new RegExp('^' separator.source '$(?!\s)'flags)
    }
    
limit limit === undefined ? ->>> limit >>> 0
    
while (match separator.exec(str)) {
        
lastIndex match.index match[0].length
        
if (lastIndex lastLastIndex) {
            
output.push(str.slice(lastLastIndexmatch.index))
            if (!
compliantExecNpcg && match.length 1) {
                
match[0].replace(separator2, function () {
                    for (var 
1arguments.length 2i++) {
                        if (
arguments[i] === undefined) {
                            
match[i] = undefined
                        
}
                    }
                })
            }
            if (
match.length && match.index str.length) {
                Array.
prototype.push.apply(outputmatch.slice(1))
            }
            
lastLength match[0].length
            lastLastIndex 
lastIndex
            
if (output.length >= limit) {
                break
            }
        }
        if (
separator.lastIndex === match.index) {
            
separator.lastIndex++
        }
    }
    if (
lastLastIndex === str.length) {
        if (
lastLength || !separator.test('')) {
            
output.push('')
        }
    } else {
        
output.push(str.slice(lastLastIndex))
    }
    return 
output.length limit output.slice(0limit) : output
};
?>
Онлайн: 2
Реклама