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

Initial attempt at AMD support #99

wants to merge 12 commits into from


Copy link

This is my initial attempt at AMD support for issue #66, with supporting tests. I've made some compromises to make the diff smaller. Ideally, the source files should be renamed to match the module name (ie Base64.js instead of base64.js) so that you don't need the path mapping in requirejs.config. I've also added an example using AMD.

I will squash the commits before merging once getting some feedback.

Copy link
Contributor Author

lboynton commented Dec 3, 2012

Should Strophe still define window globals even if AMD is used? There are a lot of Strophe plugins which expect globals. I've found that using the shim config in require.js is unreliable for Strophe plugins which expect the Strophe global. The amdWebGlobal.js below defines a global even if AMD is being used.

Copy link

jfmoy commented Jan 9, 2013

A quick message to show my support to the initiative, I hope soon Strophe will be AMD ready.

@lboynton lboynton closed this Dec 8, 2014
Gordin pushed a commit to Gordin/strophejs that referenced this pull request Jan 31, 2015
escapeNode & unescapeNode null tolerance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants