Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSS 'verbs' for callback generation #112

Open
vprimachenko opened this issue Jan 21, 2014 · 0 comments
Open

HSS 'verbs' for callback generation #112

vprimachenko opened this issue Jan 21, 2014 · 0 comments

Comments

@vprimachenko
Copy link

there are functions like removeFlag which are used instead of a 'code block' eg

foo {
    on.click: removeFlag(bar);
}

instead of

foo {
    on.click: ${
        this.removeFlag(bar);
    }
}

such functions need to be recognized as 'function generators' (a js equivalent would be function(a){ return function(a){ a.b() }; })

there should be functions like insertAfter etc for dom manipulation and such which will generate 'code blocks'(aka callbacks) for use as event handler
eg

@request {
    src: 'foo';
    on.complete: appendTo(@root bar);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant