From 8037da356a3784c49d98b5b97379f9f82cd9fb1f Mon Sep 17 00:00:00 2001 From: Dan Onoshko Date: Fri, 2 Jan 2015 00:12:50 +0700 Subject: [PATCH] async method fix --- README.md | 6 ++---- lib/translate.js | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 66f95f26..7ee1d5ef 100644 --- a/README.md +++ b/README.md @@ -435,7 +435,7 @@ Future plans class A { int a = 123; - readonly String about = "class"; + String about = "class"; $("button").click(() => console.log("Button Clicked!")); @@ -459,7 +459,7 @@ Future plans about = "ups!"; } - get some => "some " + about; + get some() => "some " + about; set some(val) => about += val; } @@ -473,8 +473,6 @@ Future plans alert(some); } - int operator[](int index) => index + 584; - operator[]=(int index, int val) => x = index + val; } diff --git a/lib/translate.js b/lib/translate.js index ff73932d..7570ea5d 100644 --- a/lib/translate.js +++ b/lib/translate.js @@ -482,8 +482,6 @@ Cola.DefFunWithMods = function(func, mods){ }); } - if (mods.indexOf("async") != -1) func = Cola.FuncAsync(func); - var sname = func.name, dp = { properties : [ new Cola.AST_ObjectKeyVal({ key : (function(node){