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

Wind.compileBlock method for compile a whole code block #45

Open
JeffreyZhao opened this issue Jul 24, 2012 · 0 comments
Open

Wind.compileBlock method for compile a whole code block #45

JeffreyZhao opened this issue Jul 24, 2012 · 0 comments
Assignees
Labels
Milestone

Comments

@JeffreyZhao
Copy link
Owner

Usage:

Jscex.compileBlock(options /* or name */, function () {
    /* code block */
});

The name would be used in "//@ sourceURL".

Assign a better name for generated function:

  • Use the function name if it's not a anonymous method.
  • Use the Jason name if it's created like this: myFunc: eval(...)
  • Use the variable name if it's assigned to a variable: var myFunc = eval(...) or myFunc = eval(...)
  • Use the field name if it's assigned to a field name: a.myFunc = eval(...)
@ghost ghost assigned JeffreyZhao Jul 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant