Changes between Version 6 and Version 7 of WebInspectorCodingStyleGuide
- Timestamp:
- Dec 2, 2013, 2:06:55 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebInspectorCodingStyleGuide
v6 v7 14 14 }); 15 15 }}} 16 * Avoid using the "on" prefix where possible. The `_onFoo` methods can just be `_foo` .16 * Avoid using the "on" prefix where possible. The `_onFoo` methods can just be `_foo` or `_handleFoo`. 17 17 * New class names should use the name of the base class as a suffix. (ex: `TimelinesContentView` < `ContentView`). Exceptions: classes extending `WebInspector.Object` (unless they are a represented object), and deep hierarchies such as `DebuggerSidebarPanel` < `NavigationSidebarPanel` < `SidebarPanel` < `Object`. 18 18 * Add new lines before and after different tasks performed in the same function. … … 27 27 { 28 28 WebInspector.Object.call(this); 29 29 30 this._propertyName = ...; 30 31 } … … 57 58 58 59 // Protected 60 59 61 handleEvent: function(event) 60 62 {