Skip to content

Commit a8a40d3

Browse files
committed
JSDoc по просьбе @Rebulus
1 parent 9f2771c commit a8a40d3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ns.dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/**
3636
* Generates DOM from HTML-string.
3737
* @param {string} html
38-
* @returns {Element}
38+
* @returns {?Element}
3939
*/
4040
ns.html2node = function(html) {
4141
if (!html) {

src/ns.view.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,8 +1145,8 @@
11451145

11461146
/**
11471147
* Ищет элемент для вида по его ключу
1148-
* @param {HTMLElement} node
1149-
* @returns {Node}
1148+
* @param {Element} node
1149+
* @returns {?Element}
11501150
* @private
11511151
*/
11521152
ns.View.prototype._extractNodeByKey = function(node) {
@@ -1166,9 +1166,9 @@
11661166
};
11671167

11681168
/**
1169-
*
1170-
* @param {HTMLElement} node
1171-
* @returns {Node}
1169+
* Ищет ноду для вида в отрендеренном DOM.
1170+
* @param {Element} node
1171+
* @returns {?Element} Ноды может не быть, эту ситуацию надо обрабатывать.
11721172
* @private
11731173
*/
11741174
ns.View.prototype._extractNode = function(node) {

0 commit comments

Comments
 (0)