From 4277f657b2ae73ffa2ceb134d3f77374a7574c6d Mon Sep 17 00:00:00 2001 From: gasman Date: Mon, 8 Dec 2014 11:53:36 -0800 Subject: [PATCH] Updated StreamField blocks API (markdown) --- StreamField-blocks-API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StreamField-blocks-API.md b/StreamField-blocks-API.md index 047c37c..fdb7082 100644 --- a/StreamField-blocks-API.md +++ b/StreamField-blocks-API.md @@ -220,4 +220,4 @@ The default value for blocks of this type; used as the initial value for newly-c Implementation details that should be covered here (but aren't totally set in stone yet): * Javascript API refactor - rather than two levels of indirection (meta-initialiser and initialiser), there's just an initialiser function that takes js_declaration_param and prefix as its two parameters -* BoundBlock as a helper; calls to js_declaration_param should be done as block_factory.bind(val, prefix).js_declaration_param() rather than block_factory.js_declaration_param(val) so that blocks can potentially subclass BoundBlock to carry extra data around +* BoundBlock as a helper; ~~calls to js_declaration_param should be done as block_factory.bind(val, prefix).js_declaration_param() rather than block_factory.js_declaration_param(val) so that blocks can potentially subclass BoundBlock to carry extra data around~~ (not yet; it means recursive/structural blocks are forced into that pattern too, in order to be able to pass prefix to child_block_factory.bind())