@@ -13,16 +13,16 @@ if (typeof Promise === 'undefined') {
1313// ES5 Polyfills
1414// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
1515if ( ! Function . prototype . bind ) {
16- Function . prototype . bind = function ( oThis ) {
16+ Function . prototype . bind = function ( oThis ) {
1717 if ( typeof this !== 'function' ) {
1818 throw new TypeError ( 'Function.prototype.bind - what is trying to be bound is not callable' ) ;
1919 }
2020
2121 var aArgs = Array . prototype . slice . call ( arguments , 1 ) ;
2222 var fToBind = this ;
23- var NoOp = function ( ) {
23+ var NoOp = function ( ) {
2424 } ;
25- var fBound = function ( ) {
25+ var fBound = function ( ) {
2626 return fToBind . apply ( this instanceof NoOp && oThis ? this : oThis ,
2727 aArgs . concat ( Array . prototype . slice . call ( arguments ) ) ) ;
2828 } ;
@@ -34,7 +34,6 @@ if (!Function.prototype.bind) {
3434 } ;
3535}
3636
37-
3837// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
3938if ( ! Array . prototype . map ) {
4039 Array . prototype . map = function ( callback , thisArg ) {
@@ -55,7 +54,8 @@ if (!Array.prototype.map) {
5554 var k = 0 ;
5655
5756 while ( k < len ) {
58- var kValue , mappedValue ;
57+ var kValue ;
58+ var mappedValue ;
5959 if ( k in O ) {
6060 kValue = O [ k ] ;
6161 mappedValue = callback . call ( T , kValue , k , O ) ;
@@ -99,7 +99,8 @@ if (!Array.prototype.filter) {
9999// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
100100if ( ! Array . prototype . forEach ) {
101101 Array . prototype . forEach = function ( callback , thisArg ) {
102- var T , k ;
102+ var T ;
103+ var k ;
103104 if ( this === null || this === undefined ) {
104105 throw new TypeError ( ' this is null or not defined' ) ;
105106 }
0 commit comments