Extends
Constructor
new ve.ui.MWWikitextDataTransferHandlerFactory()
#
Drop handler Factory.
Drop handler Factory.
Methods
create(name, […args]) → {Object}
#
Create an object based on a name.
Name is used to look up the constructor to use, while all additional arguments are passed to the constructor directly, so leaving one out will pass an undefined to the constructor.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string | Object name |
|
args |
any |
optional repeatable |
Arguments to pass to the constructor |
Returns:
The new object
- Type
- Object
Throws:
-
Unknown object name
- Type
- Error
Create an object based on a name.