From a9010b529b21228bc1c440d0c6fafcdbed7210a3 Mon Sep 17 00:00:00 2001 From: Onoshko Dan Date: Sat, 2 Aug 2014 02:32:40 +0700 Subject: [PATCH] readme fix --- README.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b69750fb..bc319ee8 100644 --- a/README.md +++ b/README.md @@ -385,6 +385,28 @@ Future plans - static typing - rename runtime prefix `$_cola` to `_crt$$` +- `@use klosure` wrapped code will be execute on `DOMContentLoaded`, `main` functions will triggered firstly: + + // cola + + @use klosure + + main(){ + alert('loaded!'); + } + + document.title = "Page"; + + // js + + document.addEventListener('DOMContentLoaded', function(){ + alert('loaded!'); + }, false); + + document.addEventListener('DOMContentLoaded', function(){ + document.title = "Page"; + }, false); + - inline using of `@use` @use meteor @@ -414,9 +436,9 @@ Future plans Cola.AST_Node node = new Cola.AST_Node; -- intarface +- interface - inerface UserProfile { + interface UserProfile { String name, email; Date birth; String info?;