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

Fix browser usage by removing BOMs #1

Merged
merged 2 commits into from
Jun 11, 2013
Merged

Conversation

croikle
Copy link
Contributor

@croikle croikle commented Apr 25, 2013

Thanks for this project!

Your files begin with a Unicode BOM, which Node has no trouble with. However, when browserify mashes all the files together for client-side.js, the BOMs end up in the middle of the file, and my browsers choke.

Apparently this has been noticed, but not yet fixed, by browserify folks: browserify/browserify#313

I removed the BOMs, and also cleaned up things around Changeset.prototype.apply. I hope this is useful.

Browsers dislike \ufeff showing up in the middle of a script, which
happens when we bundle with browserify.  So we remove all BOMs in this
project.

Related: browserify/browserify#313
`Changeset.prototype.apply` had a comment incorrectly copied from
`Operation.invert`.  Fix this, and also change the parameter name to
`text` to match the operation `apply` methods.
marcelklehr added a commit that referenced this pull request Jun 11, 2013
Fix browser usage by removing BOMs
@marcelklehr marcelklehr merged commit 5b52f65 into marcelklehr:master Jun 11, 2013
@marcelklehr
Copy link
Owner

thank you!

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.

None yet

2 participants