File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ import './polyfill'
12import SketchField from './SketchField'
23import Tools from './tools'
34
Original file line number Diff line number Diff line change 1+ /**
2+ * Object.assign() polyfill for IE11
3+ * @see <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign>
4+ */
5+
6+ if ( typeof Object . assign != "function" ) {
7+ Object . defineProperty ( Object , "assign" , {
8+ value : function assign ( target , varArgs ) {
9+ "use strict" ;
10+ if ( target == null ) {
11+ throw new TypeError ( "Cannot convert undefined or null to object" ) ;
12+ }
13+ var to = Object ( target ) ;
14+ for ( var index = 1 ; index < arguments . length ; index ++ ) {
15+ var nextSource = arguments [ index ] ;
16+ if ( nextSource != null ) {
17+ for ( var nextKey in nextSource ) {
18+ if ( Object . prototype . hasOwnProperty . call ( nextSource , nextKey ) ) {
19+ to [ nextKey ] = nextSource [ nextKey ] ;
20+ }
21+ }
22+ }
23+ }
24+ return to ;
25+ } ,
26+ writable : true ,
27+ configurable : true
28+ } ) ;
29+ }
You can’t perform that action at this time.
0 commit comments