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

Build version of numeric suitable for amd #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jwmerrill
Copy link

Adds a new build object, numeric-$ver.amd.js, which is a version of numeric suitable for AMD. This file is created by catting a simple prelude and postlude around the existing library.

Includes changes from #45 that are required to allow numeric's compiled functions to work even when the numeric symbol is not in the global scope.

This replaces calls to javascript's Function() with calls to the new numeric.compile(), which is a wrapper that closures in the numeric object so that methods on it can be used inside compiled code. The motivation here is to allow using numeric without globally exporting the `numeric` symbol.
@jwmerrill
Copy link
Author

Looks like this along with #45 are very similar to the existing #35. The approaches a little different, though, so I guess you can pick which one suits your tastes.

@jwmerrill jwmerrill closed this Sep 17, 2013
@jwmerrill jwmerrill reopened this Sep 17, 2013
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

Successfully merging this pull request may close these issues.

1 participant