Skip to content

Commit 6fd4cfd

Browse files
committed
.html
1 parent bf2e0b4 commit 6fd4cfd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/modules/extra.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,13 @@
423423

424424
};
425425

426+
GameWindow.prototype.setInnerHTML = function(search, replace, mod) {
427+
console.log('***deprecated: use W.html instead of W.setInnerHTML');
428+
this.html(search, replace, mod);
429+
};
430+
426431
/**
427-
* ### GameWindow.setInnerHTML
432+
* ### GameWindow.html
428433
*
429434
* Replaces the innerHTML of the element with matching id or class name
430435
*
@@ -437,7 +442,7 @@
437442
* - 'className': replaces all elements with same class name
438443
* - 'g': replaces globally, both by id and className
439444
*/
440-
GameWindow.prototype.setInnerHTML = function(search, replace, mod) {
445+
GameWindow.prototype.html = function(search, replace, mod) {
441446
var el, i, len;
442447

443448
// Only process strings or numbers.

0 commit comments

Comments
 (0)