File tree 7 files changed +32
-4
lines changed
7 files changed +32
-4
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
var render_1 = require ( './components/render' ) ;
3
3
var root_1 = require ( './components/root' ) ;
4
- var polyfills_1 = require ( './polyfills' ) ;
4
+ var polyfills_1 = require ( './modules/ polyfills' ) ;
5
5
var subscriptions_1 = require ( './subscriptions' ) ;
6
6
var store_1 = require ( './store' ) ;
7
7
var actions_1 = require ( './modules/setup/actions' ) ;
Original file line number Diff line number Diff line change
1
+ "use strict" ;
2
+ var object_values_1 = require ( './object-values' ) ;
3
+ function loadPolyfills ( ) {
4
+ object_values_1 . default ( ) ;
5
+ }
6
+ Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
7
+ exports . default = loadPolyfills ;
Original file line number Diff line number Diff line change
1
+ "use strict" ;
2
+ function polyfillObjectValues ( ) {
3
+ if ( typeof Object . values !== 'function' ) {
4
+ Object . values = function ( obj ) {
5
+ var vals = [ ] ;
6
+ for ( var key in obj ) {
7
+ vals . push ( obj [ key ] ) ;
8
+ }
9
+ return vals ;
10
+ } ;
11
+ }
12
+ }
13
+ Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
14
+ exports . default = polyfillObjectValues ;
15
+ ;
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
import render from './components/render' ;
3
3
import Root from './components/root' ;
4
- import loadPolyfills from './polyfills' ;
4
+ import loadPolyfills from './modules/ polyfills' ;
5
5
import { onActivate , onDeactivate , addToStatusBar } from './subscriptions' ;
6
6
// activate Redux
7
7
import store from './store' ;
Original file line number Diff line number Diff line change
1
+ import polyfillObjectValues from './object-values' ;
2
+
3
+ export default function loadPolyfills ( ) : void {
4
+ polyfillObjectValues ( ) ;
5
+ }
Original file line number Diff line number Diff line change 1
- export default function loadPolyfills ( ) : void {
1
+ export default function polyfillObjectValues ( ) : void {
2
2
3
3
// Object.values (ES7)
4
4
if ( typeof Object . values !== 'function' ) {
Original file line number Diff line number Diff line change 90
90
" src/modules/page/task-tests/index.ts" ,
91
91
" src/modules/page/tasks/index.ts" ,
92
92
" src/modules/page/types.ts" ,
93
+ " src/modules/polyfills/index.ts" ,
94
+ " src/modules/polyfills/object-values.ts" ,
93
95
" src/modules/progress/actions.ts" ,
94
96
" src/modules/progress/index.ts" ,
95
97
" src/modules/progress/reducer.ts" ,
136
138
" src/modules/window/index.ts" ,
137
139
" src/modules/window/reducer.ts" ,
138
140
" src/modules/window/types.ts" ,
139
- " src/polyfills.ts" ,
140
141
" src/reducers.ts" ,
141
142
" src/store.ts" ,
142
143
" src/subscriptions.ts" ,
You can’t perform that action at this time.
0 commit comments