Skip to content

Commit 3cc4e23

Browse files
committed
More View comments
1 parent 2c3899f commit 3cc4e23

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/blaze/view.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@
2424
/// callbacks are fired, which happens when the View is "used" in
2525
/// some way that requires it to be rendered.
2626
///
27-
/// ...
27+
/// ...more lifecycle stuff
28+
///
29+
/// `kind` is an optional string tag identifying the View. The only
30+
/// time it's used is when looking in the View tree for a View of a
31+
/// particular kind; for example, data contexts are stored on Views
32+
/// of kind "with". Kinds are also useful when debugging, so in
33+
/// general it's good for functions that create Views to set the kind.
34+
/// Templates have kinds of the form "Template.foo".
2835
Blaze.View = function (kind, render) {
2936
if (! (this instanceof Blaze.View))
3037
// called without `new`

0 commit comments

Comments
 (0)