Closed
Bug 1032482
Opened 10 years ago
Closed 10 years ago
Render connections only once
Categories
(DevTools Graveyard :: Web Audio Editor, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 33
People
(Reporter: jsantell, Assigned: jsantell)
References
Details
Attachments
(2 files, 1 obsolete file)
203.60 KB,
image/png
|
Details | |
6.85 KB,
patch
|
jsantell
:
review+
|
Details | Diff | Splinter Review |
While creating a beautiful image, the web audio editor should not render connections to another audio node multiple times, even if node.connect(otherNode) is called several times.
Assignee | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Comment on attachment 8448972 [details] [diff] [review] 1032482-redundant-connection-render.patch Review of attachment 8448972 [details] [diff] [review]: ----------------------------------------------------------------- r+ with the comment below. ::: browser/devtools/webaudioeditor/webaudioeditor-controller.js @@ +104,5 @@ > AudioNodeConnections.set(this, connections); > } > + > + // Don't duplicate add. > + if (!~connections.indexOf(destination)) { Maybe using a Set for the connections would've been nicer than an array? I'd suggest doing this small refactoring if time permits.
Attachment #8448972 -
Flags: review?(vporof) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Now with sets
Attachment #8448972 -
Attachment is obsolete: true
Attachment #8449006 -
Flags: review+
Assignee | ||
Comment 4•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=22e8c0837cf1
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/480d3f283c9d
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/480d3f283c9d
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 33
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•