From 73cf568af1485928ea4dde2b791828bb733b52c4 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Tue, 25 Mar 2014 15:59:13 -0700 Subject: [PATCH] Delete docs for constant --- docs/client/api.html | 32 -------------------------------- docs/client/api.js | 5 ----- docs/client/docs.js | 1 - 3 files changed, 38 deletions(-) diff --git a/docs/client/api.html b/docs/client/api.html index 82d48d46dc..ecfd33458a 100644 --- a/docs/client/api.html +++ b/docs/client/api.html @@ -2342,38 +2342,6 @@ browsers. {{/api_box}} - -{{#api_box constant}} - -You can mark a region of a template as "constant" and not subject to -re-rendering using the -`{{dstache}}#constant}}...{{dstache}}/constant}}` block helper. -Content inside the `#constant` block helper is preserved exactly as-is -even if the enclosing template is re-rendered. Changes to other parts -of the template are patched in around it in the same manner as -`preserve`. Unlike individual node preservation, a constant region -retains not only the identities of its nodes but also their attributes -and contents. The contents of the block will only be evaluated once -per occurrence of the enclosing template. - -Constant regions allow non-Meteor content to be embedded in a Meteor -template. Many third-party widgets create and manage their own DOM -nodes programmatically. Typically, you put an empty element in your -template, which the widget or library will then populate with -children. Normally, when Meteor re-renders the enclosing template it -would remove the new children, since the template says it should be -empty. If the container is wrapped in a `#constant` block, however, it -is left alone; whatever content is currently in the DOM remains. - -{{#note}} -Constant regions are intended for embedding non-Meteor content. -Event handlers and reactive dependencies don't currently work -correctly inside constant regions. -{{/note}} - - -{{/api_box}} - {{#api_box isolate}} Each template runs as its own reactive computation. When the template diff --git a/docs/client/api.js b/docs/client/api.js index 794938eda6..889ab2def0 100644 --- a/docs/client/api.js +++ b/docs/client/api.js @@ -1000,11 +1000,6 @@ Template.api.eventmaps = { name: "Event Maps" }; -Template.api.constant = { - id: "constant", - name: "Constant regions" -}; - Template.api.isolate = { id: "isolate", name: "Reactivity isolation" diff --git a/docs/client/docs.js b/docs/client/docs.js index 6f09372907..550471934c 100644 --- a/docs/client/docs.js +++ b/docs/client/docs.js @@ -248,7 +248,6 @@ var toc = [ ], {type: "spacer"}, {name: "Event maps", style: "noncode"}, - {name: "Constant regions", style: "noncode", id: "constant"}, {name: "Reactivity isolation", style: "noncode", id: "isolate"} ],