Skip to content

Commit 1933547

Browse files
committed
Fix types on DOM
1 parent 94d9291 commit 1933547

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/dom/AddToDOM.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
* @function Phaser.DOM.AddToDOM
1212
* @since 3.0.0
1313
*
14-
* @param {object} element - The element to be added to the DOM. Usually a Canvas object.
15-
* @param {string|object} [parent] - The parent in which to add the element. Can be a string which is passed to `getElementById` or an actual DOM object.
14+
* @param {HTMLElement} element - The element to be added to the DOM. Usually a Canvas object.
15+
* @param {string|HTMLElement} [parent] - The parent in which to add the element. Can be a string which is passed to `getElementById` or an actual DOM object.
1616
* @param {boolean} [overflowHidden=true] - [description]
1717
*
18-
* @return {object} The element that was added to the DOM.
18+
* @return {HTMLElement} The element that was added to the DOM.
1919
*/
2020
var AddToDOM = function (element, parent, overflowHidden)
2121
{

src/dom/ParseXML.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* @param {string} data - The XML source stored in a string.
1616
*
17-
* @return {any} The parsed XML data, or `null` if the data could not be parsed.
17+
* @return {DOMParser|ActiveXObject|null} The parsed XML data, or `null` if the data could not be parsed.
1818
*/
1919
var ParseXML = function (data)
2020
{

src/dom/RemoveFromDOM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @function Phaser.DOM.RemoveFromDOM
1111
* @since 3.0.0
1212
*
13-
* @param {any} element - The DOM element to remove from its parent node.
13+
* @param {HTMLElement} element - The DOM element to remove from its parent node.
1414
*/
1515
var RemoveFromDOM = function (element)
1616
{

src/dom/RequestAnimationFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var RequestAnimationFrame = new Class({
4646
* The most recent timestamp. Either a DOMHighResTimeStamp under RAF or `Date.now` under SetTimeout.
4747
*
4848
* @name Phaser.DOM.RequestAnimationFrame#tick
49-
* @type {DOMHighResTimeStamp|number}
49+
* @type {number}
5050
* @default 0
5151
* @since 3.0.0
5252
*/

0 commit comments

Comments
 (0)