Skip to content

Commit

Permalink
Docs correction: DOMNode -> DOMElement
Browse files Browse the repository at this point in the history
Because CSS selectors match only elements and not nodes
  • Loading branch information
Slava committed Nov 5, 2014
1 parent 831ca7d commit 00d6682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blaze/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Blaze.TemplateInstance.prototype.$ = function (selector) {
* @summary Find all elements matching `selector` in this template instance.
* @locus Client
* @param {String} selector The CSS selector to match, scoped to the template contents.
* @returns {DOMNode[]}
* @returns {DOMElement[]}
*/
Blaze.TemplateInstance.prototype.findAll = function (selector) {
return Array.prototype.slice.call(this.$(selector));
Expand All @@ -231,7 +231,7 @@ Blaze.TemplateInstance.prototype.findAll = function (selector) {
* @summary Find one element matching `selector` in this template instance.
* @locus Client
* @param {String} selector The CSS selector to match, scoped to the template contents.
* @returns {DOMNode}
* @returns {DOMElement}
*/
Blaze.TemplateInstance.prototype.find = function (selector) {
var result = this.$(selector);
Expand Down

0 comments on commit 00d6682

Please sign in to comment.