What does dijit.registry.remove () do?

What does dijit.registry.remove () do? How does it handle invalid parameters?

+4
source share
1 answer

The dijit.registry link is an instance of dijit.WidgetSet , which is a collection of widgets.

The remove() function accepts an input identifier and removes this widget with the corresponding identifier from the collection, if it is found.

In Dojo 1.4, a WidgetSet is defined within dijit / _base / manager.js .

The missing identifier is used internally because the key is considered in an associative array. It is used as: this._hash [id], so transferring garbage will result in nothing being found or deleted.

+6
source

Source: https://habr.com/ru/post/1300217/


All Articles