This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function r(f){/(un|ing)/.test(document.readyState)?setTimeout(r,9,f):f()} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import js.Browser; | |
import mithril.M; | |
class App implements Mithril { | |
public static function main() { | |
M.mount(Browser.document.body, new App()); | |
} | |
var tests = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User implements Model { | |
@prop public var name : String; | |
public function new(name) { | |
this.name = M.prop(name); | |
} | |
} | |
class TestModule implements View { | |
var user:User; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The following will be macromagically transformed... | |
class LazyExample implements Lazy | |
{ | |
var values:Array<Int>; | |
public function new() | |
{ | |
this.values = [3, 5, 1, 7]; | |
} |