-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Conversation
* Refactor InlineEditor into 2 classes: InlineEditor (generic inline) and InlineTextEditor (inline with one or more text editors) * Add rule list UI for displaying multiple selector matches * Rename properties InlineEditor.onClosed and onParentShown to match Editor argument names * Update styling based on prototype
* Fix inheritance in InlineEditor constructors * Restore event handler names * Fix dirty indicator handling
reviewing |
CSSInlineEditor.prototype.load = function (hostEditor) { | ||
this.hostEditor = hostEditor; | ||
|
||
InlineTextEditor.prototype.load.call(this, hostEditor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you define add the following to CSSInlineEditor:
CSSInlineEditor.prototype.parentObject = InlineTextEditor.prototype;
then you can call load() this way
this.parentObject.load.call(this, hostEdtior);
I read about this technique here: http://phrogz.net/js/classes/OOPinJS2.html
I suspect with these classes we may be overriding functionality a lot and wanting to call super, so it may be good to not explicitly put the parent class in the function calling code in case we add more to the inheritance hierarchy later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Done with review. I really like the refactoring of InlineEditor and InlineTextEditor. The chrome looks great too! |
Pushed fixes |
merging in rule list widget code
@tvoliter