21 | | * Firewall the protocol inside the Manager classes. JSON objects received from the protocol are called "payload" in the code. The payload is usually deconstructed at the Managers level and passes down as smart objects inheriting from `WebInspector.Object`. |
| 21 | * Firewall the protocol inside the Manager classes. JSON objects received from the protocol are called "payload" in the code. The payload is usually deconstructed at the Managers level and passes down as smart objects inheriting from `WebInspector.Object`. |
| 22 | * Avoid accessing *View classes from *Manager or *Object classes. This is a layering violation that prevents writing tests for models. |
| 23 | * Avoid storing DOM elements in *Manager or *Object classes. (see above.) |
| 24 | * Spell out `identifier` instead of `id` if not doing so would result in a name ending with capitalized `Id`. For example, just `this.id` is fine, but `this.breakpointId` should be `this.breakpointIdentifier`. |