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
Translate most of Annotator to JavaScript #447
Conversation
$ = Util.$; | ||
|
||
// isEmpty returns a boolean indicating whether the passed object is empty | ||
var isEmpty = function isEmpty(obj) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why var isEmpty =
instead of just the named function definition? It seems like this whole file has this pattern.
Cleaned up |
👍 on all this |
The };
};
}; rather than };
};
} But hey --- I'm not really bothered. I might rebase the changes inline, though, if you prefer it this way. |
Either way, agree with you that |
`browserify -t coffeify` can cope with a mixed codebase, but only if the CoffeeScript requires are explicit.
@tilgovi Rebased those changes inline into the translations. |
I'm pushing the big green button. |
Translate most of Annotator to JavaScript
⭐ very happy to see this :) |
+1! On Tuesday, October 7, 2014, Aron Carroll notifications@github.com wrote:
I would have sent you a shorter email but I ran out of time. (apologies to |
🎺 🎉 🎆 |
As discussed repeatedly on the mailing lists and in person, the general consensus has been that a pure-JS Annotator would be a Good Thing. Pros and cons of the switch:
None of the reasons I originally switched to CoffeeScript (lack of decent automated JS code quality tools, difficulty of writing cross-browser JavaScript) remain valid. With that in mind, I kind of accidentally translated most of Annotator to JavaScript. It wasn't an awful lot of work.
My intent is that we merge this large chunk, and then progressively translate the rest of the code (including the tests) to JavaScript as we go along. Do shout if you have any objections.