Verified Commit b9785f09 authored by Camil Staps's avatar Camil Staps 🙂

Rename JavaScript variable names to make JS ffi somewhat more lightweight

parent 1194a86b
......@@ -26,7 +26,7 @@ import Text
| JSSel !JSVal !JSVal // x[y]
| JSSelPath !JSVal !String // x.path1.path2...pathn
| JSRef !Int // a reference to shared_js_values
| JSRef !Int // a reference to js
| JSCleanRef !Int // a reference to shared_clean_values
| JSTempPair !JSVal !JSVal
......@@ -57,8 +57,8 @@ where
JSSel obj attr -> toString obj+++"["+++toString attr+++"]"
JSSelPath obj path -> toString obj+++"."+++path
JSRef i -> "abc_interpreter.shared_js_values["+++toString i+++"]"
JSCleanRef i -> "abc_interpreter.apply_to_clean_value("+++toString i+++")"
JSRef i -> "ABC.js["+++toString i+++"]"
JSCleanRef i -> "ABC.ap("+++toString i+++")"
jsMakeCleanReference :: a -> JSVal
jsMakeCleanReference x = share x
......
......@@ -25,7 +25,7 @@
<!-- load iTasks viewport -->
<script type="text/javascript">
window.onload = function() {
abc_interpreter.loading_promise.then(function(){
ABC.loading_promise.then(function(){
itasks.viewport({syncTitle: true}, document.body);
});
};
......
......@@ -42,8 +42,8 @@ itasks.Component = {
initUI: function() {
var me=this;
if (me.attributes.initUI!=null && me.attributes.initUI!='') {
var initUI=abc_interpreter.deserialize(me.attributes.initUI);
abc_interpreter.interpret(initUI, [me]);
var initUI=ABC.deserialize(me.attributes.initUI);
ABC.interpret(initUI, [me]);
}
},
initComponent: function() {}, //Abstract method: every component implements this differently
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment