Closed Bug 1684463 Opened 3 years ago Closed 3 years ago

Refactor element-editor#_createAttribute function

Categories

(DevTools :: Inspector, task, P3)

task

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: gl, Assigned: gl)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

The element-editor#_createAttribute is rather long and one easy thing we can do to shorten it is to move the collapse function out into its own private function and add some better JSDoc to make it clearer what _createAttribute is doing.

Attachment #9194878 - Attachment description: Bug 1684463 - Shorten the _createAttribute function by refactoring the collapse function. r=jdescottes → Bug 1684463 - [devtools] Shorten the _createAttribute function by refactoring the collapse function. r=jdescottes
Summary: Shorten the _createAttribute function by refactoring the collapse function → Refactor element-editor#_createAttribute function
Attachment #9194878 - Attachment description: Bug 1684463 - [devtools] Shorten the _createAttribute function by refactoring the collapse function. r=jdescottes → Bug 1684463 - [devtools] Part 1: Shorten the _createAttribute function by refactoring the collapse function. r=jdescottes
Pushed by gluong@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e99066681c26
[devtools] Part 1: Shorten the _createAttribute function by refactoring the collapse function. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/84b177d10c21
[devtools] Part 2: Split the appending attribute value logic out into _appendAttributeValue. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/64d04865c55c
[devtools] Part 3: Split making the attribute editable logic out into _setupAttributeEditor. r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: