Closed
Bug 1032482
Opened 11 years ago
Closed 11 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•11 years ago
|
||
Comment 2•11 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•11 years ago
|
||
Now with sets
Attachment #8448972 -
Attachment is obsolete: true
Attachment #8449006 -
Flags: review+
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 5•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 33
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•