Skip to content

Commit

Permalink
docs: �correct ElementRegistry signatures (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
miyuesc committed Nov 17, 2022
1 parent 7921462 commit 09746bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/core/ElementRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ElementRegistry.prototype.add = function(element, gfx, secondaryGfx) {
/**
* Removes an element from the registry.
*
* @param {djs.model.Base} element
* @param {string|djs.model.Base} element
*/
ElementRegistry.prototype.remove = function(element) {
var elements = this._elements,
Expand All @@ -65,7 +65,7 @@ ElementRegistry.prototype.remove = function(element) {
/**
* Update the id of an element
*
* @param {djs.model.Base} element
* @param {string|djs.model.Base} element
* @param {string} newId
*/
ElementRegistry.prototype.updateId = function(element, newId) {
Expand Down Expand Up @@ -94,7 +94,7 @@ ElementRegistry.prototype.updateId = function(element, newId) {
/**
* Update the graphics of an element
*
* @param {djs.model.Base} element
* @param {string|djs.model.Base} element
* @param {SVGElement} gfx
* @param {boolean} [secondary=false] whether to update the secondary connected element
*/
Expand Down

0 comments on commit 09746bf

Please sign in to comment.