Merge branch 'next' into components

This commit is contained in:
Leo Horie 2015-03-30 13:27:17 -04:00
commit dab565727c
5 changed files with 45 additions and 17 deletions

View file

@ -3,7 +3,7 @@
---
- [Usage](#usage)
- [Subtree directives](#subtree directives)
- [Subtree directives](#subtree-directives)
- [Signature](#signature)
---
@ -60,7 +60,7 @@ This mechanism is only intended to be used as a last resort optimization tool. I
The example below shows how to use a SubtreeDirective object to create a static header that doesn't incur diff costs once it has been rendered. This means that we are avoiding the creation of the header subtree (and therefore skipping the diff algorithm) altogether, but it also means that dynamic variables will NOT be updated within the header.
```
```javascript
var app = {}
//here's an example plugin that determines whether data has changes.
@ -78,7 +78,7 @@ app.bindOnce = (function() {
//here's the view
app.view = function() {
m(".layout", [
return m(".layout", [
app.bindOnce(function() {
//this only runs once in order to boost performance
//dynamic variables are not updated here

View file

@ -10,7 +10,7 @@
- [Casting the Response Data to a Class](#casting-the-response-data-to-a-class)
- [Unwrapping Response Data](#unwrapping-response-data)
- [Using Different Data Transfer Formats](#using-different-data-transfer-formats)
- [File uploads with FormData](#file-uploads-with-form-data)
- [File uploads with FormData](#file-uploads-with-formdata)
- [Using variable data formats](#using-variable-data-formats)
- [Extracting Metadata from the Response](#extracting-metadata-from-the-response)
- [Custom request rejections](#custom-request-rejections)

View file

@ -8,7 +8,7 @@
- [Running clean up code on route change](#running-clean-up-code-on-route-change)
- [Redirecting](#redirecting)
- [Reading the currently active route](#reading-the-currently-active-route)
- [Mode abstraction](#mode abstraction)
- [Mode abstraction](#mode-abstraction)
---