Skip to content

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