Skip to content

User api improvements #12

skial opened this Issue Oct 9, 2012 · 1 comment

1 participant

skial commented Oct 9, 2012

Use macro/s to handle setting defines and including classes.

In the case of uhu.js.RAF, change uhu.Library.window.requestionAnimationFrame to a macro.

@:macro private static function handleRAF():Expr {
    return Context.parse("untyped __js__('window.requestAnimationFrame')", Context.currentPos());

Above is an example, not sure if it will work etc.

@skial skial was assigned Oct 9, 2012
skial commented Oct 9, 2012

Instead of Compiler.include("uhu.js.RAF"); it was Context.getModule("uhu.js.RAF");. Misleading method name to just include a class.

@skial skial closed this Oct 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.