We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c3899f commit 3cc4e23Copy full SHA for 3cc4e23
packages/blaze/view.js
@@ -24,7 +24,14 @@
24
/// callbacks are fired, which happens when the View is "used" in
25
/// some way that requires it to be rendered.
26
///
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".
35
Blaze.View = function (kind, render) {
36
if (! (this instanceof Blaze.View))
37
// called without `new`
0 commit comments