File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -621,16 +621,15 @@ if (!Array.prototype.map) {
621
621
============================================================================ */
622
622
623
623
if ( ! Date . prototype . toISOString ) {
624
- ( function ( ) {
624
+ Date . prototype . toISOString = function ( ) {
625
625
626
- function pad ( number ) {
627
- if ( number < 10 ) {
628
- return '0' + number ;
626
+ var pad = function ( number ) {
627
+ if ( number < 10 ) {
628
+ return '0' + number ;
629
+ }
630
+ return number ;
629
631
}
630
- return number ;
631
- }
632
632
633
- Date . prototype . toISOString = function ( ) {
634
633
return this . getUTCFullYear ( ) +
635
634
'-' + pad ( this . getUTCMonth ( ) + 1 ) +
636
635
'-' + pad ( this . getUTCDate ( ) ) +
@@ -639,7 +638,5 @@ if (!Date.prototype.toISOString) {
639
638
':' + pad ( this . getUTCSeconds ( ) ) +
640
639
'.' + ( this . getUTCMilliseconds ( ) / 1000 ) . toFixed ( 3 ) . slice ( 2 , 5 ) +
641
640
'Z' ;
642
- } ;
643
-
644
- } ) ( ) ;
641
+ }
645
642
}
You can’t perform that action at this time.
0 commit comments