How to use the extend/utils/transformCss function in extend

To help you get started, we’ve selected a few extend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ractivejs / ractive / src / extend / inheritFromParent.js View on Github external
registries.filter( property => {
		return newreg.keys.indexOf( property ) === -1
	}).forEach( property => {

		if ( Parent[ property ] ) {
			Child[ property ] = create( Parent[ property ] );
		}

	});

	// Special case - CSS
	if ( Parent.css ) {
		defineProperty( Child, 'css', {
			value: Parent.defaults.noCssTransform
				? Parent.css
				: transformCss( Parent.css, Child._guid )
		});
	}
}

extend

Port of jQuery.extend for node.js and the browser

MIT
Latest version published 6 years ago

Package Health Score

74 / 100
Full package analysis