File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,31 @@ var gatherVariableDependencies = require('./gather-variable-dependencies');
5
5
var findNodeAncestorWithSelector = require ( './find-node-ancestor-with-selector' ) ;
6
6
var cloneSpliceParentOntoNodeWhen = require ( './clone-splice-parent-onto-node-when' ) ;
7
7
8
+ if ( typeof Object . assign != 'function' ) {
9
+ Object . assign = function ( target , varArgs ) { // .length of function is 2
10
+ 'use strict' ;
11
+ if ( target == null ) { // TypeError if undefined or null
12
+ throw new TypeError ( 'Cannot convert undefined or null to object' ) ;
13
+ }
14
+
15
+ var to = Object ( target ) ;
16
+
17
+ for ( var index = 1 ; index < arguments . length ; index ++ ) {
18
+ var nextSource = arguments [ index ] ;
19
+
20
+ if ( nextSource != null ) { // Skip over if undefined or null
21
+ for ( var nextKey in nextSource ) {
22
+ // Avoid bugs when hasOwnProperty is shadowed
23
+ if ( Object . prototype . hasOwnProperty . call ( nextSource , nextKey ) ) {
24
+ to [ nextKey ] = nextSource [ nextKey ] ;
25
+ }
26
+ }
27
+ }
28
+ }
29
+ return to ;
30
+ } ;
31
+ }
32
+
8
33
// var() = var( <custom-property-name> [, <any-value> ]? )
9
34
// matches `name[, fallback]`, captures "name" and "fallback"
10
35
// See: http://dev.w3.org/csswg/css-variables/#funcdef-var
You can’t perform that action at this time.
0 commit comments