fix(renderer): remove unecessary setElementStyles method
There is no need to expose this additional method inside of the Renderer API. The functionality can be restored by looping and calling `setElementStyle` instead. Note that this change is changing code that was was introduced after the last release therefore this fix is not a breaking change. Closes #9000 Closes #9009
This commit is contained in:
@ -101,6 +101,12 @@ export function collectAndResolveStyles(collection: {[key: string]: string|numbe
|
||||
});
|
||||
}
|
||||
|
||||
export function renderStyles(element: any, renderer: any, styles: {[key: string]: string|number}): void {
|
||||
StringMapWrapper.forEach(styles, (value, prop) => {
|
||||
renderer.setElementStyle(element, prop, value);
|
||||
});
|
||||
}
|
||||
|
||||
export function flattenStyles(styles: {[key: string]: string|number}[]) {
|
||||
var finalStyles = {};
|
||||
styles.forEach(entry => {
|
||||
|
Reference in New Issue
Block a user