Automated [] rollback of changelist
*** Reason for rollback ***
Broken []: []
NO_SQ=clean rollback
*** Original change description ***
Link soy elements with logger so that no configuration is required to link velogging with soy element render
(based on []
***
@@ -8,7 +8,6 @@ import './skiphandler';
import {assert} from 'goog:goog.asserts'; // from //javascript/closure/asserts
import {IjData} from 'goog:goog.soy'; // from //javascript/closure/soy
import SanitizedContentKind from 'goog:goog.soy.data.SanitizedContentKind'; // from //javascript/closure/soy:data
-import {Logger} from 'goog:soy.velog'; // from //javascript/template/soy:soyutils_velog
import * as incrementaldom from 'incrementaldom'; // from //third_party/javascript/incremental_dom:incrementaldom
import {IncrementalDomRenderer, patchOuter, SKIP_TOKEN} from './api_idom';
@@ -35,23 +34,12 @@ export abstract class SoyElement<TData extends {}|null, TInterface extends {}> {
private patchHandler:
((prev: TInterface, next: TInterface) => void)|null = null;
private syncState = true;
- private logger: Logger|null = null;
// Marker so that future element accesses can find this Soy element from the
// DOM
key: string = '';
constructor(protected data: TData, protected ijData?: IjData) {}
- /**
- * Sets the Logger instance to use for renders of this SoyElement. If `render`
- * is called with a Renderer that has its own Logger, Renderer's Logger is
- * used instead.
- */
- setLogger(logger: Logger|null): this {
- this.logger = logger;
- return this;
- }
-
/**
* State variables that are derived from parameters will continue to be
* derived until this method is called.
@@ -71,9 +59,6 @@ export abstract class SoyElement<TData extends {}|null, TInterface extends {}> {
*/
render(renderer = new IncrementalDomRenderer()) {
assert(this.node);
- if (this.logger && !renderer.getLogger()) {
- renderer.setLogger(this.logger);
- }
// It is possible that this Soy element has a skip handler on it. When
// render() is called, ignore the skip handler.
const skipHandler = this.skipHandler;
