Commits

David Håsäther  committed 304b854

Use an existing variable instead of re-querying the DOM.

  • Participants
  • Parent commits 53c11b6

Comments (0)

Files changed (1)

File src/style/view_color_picker.js

 
       this._edit_context = edit_context ||
       {
-        initial_color: new Color().parseCSSColor(target.parentNode.textContent),
+        initial_color: new Color().parseCSSColor(value),
         ele_value: parent,
         ele_color_sample: target,
         ele_container: parent.parentNode,