| Index: tracing/tracing/ui/view_specific_brushing_state.html
|
| diff --git a/tracing/tracing/ui/view_specific_brushing_state.html b/tracing/tracing/ui/view_specific_brushing_state.html
|
| index b4704f25a47643c108da3288b162cc06de523701..83d97c3735d533ae29fca8e9f00fa4f2f172a41c 100644
|
| --- a/tracing/tracing/ui/view_specific_brushing_state.html
|
| +++ b/tracing/tracing/ui/view_specific_brushing_state.html
|
| @@ -57,13 +57,13 @@ Polymer({
|
| */
|
| get: function() {
|
| var viewId = this.viewId;
|
| - if (!viewId)
|
| + if (!viewId) {
|
| throw new Error('Element must have a view-id attribute!');
|
| + }
|
|
|
| var brushingStateController =
|
| tr.c.BrushingStateController.getControllerForElement(this);
|
| - if (!brushingStateController)
|
| - return undefined;
|
| + if (!brushingStateController) return undefined;
|
|
|
| return brushingStateController.getViewSpecificBrushingState(viewId);
|
| },
|
| @@ -78,13 +78,13 @@ Polymer({
|
| */
|
| set: function(state) {
|
| var viewId = this.viewId;
|
| - if (!viewId)
|
| + if (!viewId) {
|
| throw new Error('Element must have a view-id attribute!');
|
| + }
|
|
|
| var brushingStateController =
|
| tr.c.BrushingStateController.getControllerForElement(this);
|
| - if (!brushingStateController)
|
| - return;
|
| + if (!brushingStateController) return;
|
|
|
| brushingStateController.changeViewSpecificBrushingState(viewId, state);
|
| }
|
|
|