Implement chaining for YXmlElement functions
This commit is contained in:
parent
deefdfabc7
commit
abd95a2ca1
@ -89,6 +89,7 @@ export class YXmlElement extends YXmlFragment {
|
|||||||
* Removes an attribute from this YXmlElement.
|
* Removes an attribute from this YXmlElement.
|
||||||
*
|
*
|
||||||
* @param {String} attributeName The attribute name that is to be removed.
|
* @param {String} attributeName The attribute name that is to be removed.
|
||||||
|
* @return {YXmlElement} Instance of the YXmlElement.
|
||||||
*
|
*
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
@ -100,6 +101,7 @@ export class YXmlElement extends YXmlFragment {
|
|||||||
} else {
|
} else {
|
||||||
/** @type {Map<string,any>} */ (this._prelimAttrs).delete(attributeName)
|
/** @type {Map<string,any>} */ (this._prelimAttrs).delete(attributeName)
|
||||||
}
|
}
|
||||||
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -107,6 +109,7 @@ export class YXmlElement extends YXmlFragment {
|
|||||||
*
|
*
|
||||||
* @param {String} attributeName The attribute name that is to be set.
|
* @param {String} attributeName The attribute name that is to be set.
|
||||||
* @param {String} attributeValue The attribute value that is to be set.
|
* @param {String} attributeValue The attribute value that is to be set.
|
||||||
|
* @return {YXmlElement} Instance of the YXmlElement.
|
||||||
*
|
*
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
@ -118,6 +121,7 @@ export class YXmlElement extends YXmlFragment {
|
|||||||
} else {
|
} else {
|
||||||
/** @type {Map<string, any>} */ (this._prelimAttrs).set(attributeName, attributeValue)
|
/** @type {Map<string, any>} */ (this._prelimAttrs).set(attributeName, attributeValue)
|
||||||
}
|
}
|
||||||
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user