-
Notifications
You must be signed in to change notification settings - Fork 77
Accepts all kinds of Array-like objects #97
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
Conversation
Test Plan: None
Require that the jQuery plugin now be initialized with `$.balanceText()` Updated the README.js
re: Khan/react-balance-text#1 Auditors: briangenisio Test Plan: - Run through a sample SSR environment with `window` and `document` not defined Should be error-free :)
…jQuery interface directly
|
I'm gonna make a few more small changes |
It helps with a bit with web fonts and images that load after domready
No need to test it every run
|
Lots of good cleanups in here. I think there is room for a lot more, but to avoid too much of a diff, I think they are warranted in a separate PR. I'm curious what bugs you were running in to regarding array-likes. I had tested jQuery lists and node lists by hand. I'm glad you codified it, though, in the Thanks for these clean-ups :) |
|
In that "bugs" commit, respectively:
|
|
This looks good to me. I tested on Mac10.10/Chrome, Mac10.10/Safari, Win10/Firefox, and Win10/Edge. @bfred-it @BrianGenisio Any last changes you want to get in before I merge? |
|
LGTM!!!! |
|
@BrianGenisio @bfred-it @Rycochet Thanks for your contributions. This is awesome! |
|
Excellent! I'll publish to npm this weekend. Remind me if I forget 😂 |
|
Thanks a lot for this, @BrianGenisio! |
Accepts all kinds of Array-like objects
|
Thanks @bfred-it!!!! So exciting!!! I just published the Also, thanks to @redmunds for this very helpful utility AND for being patient with me on this re-write :) |
Accepts all kinds of Array-like objects
This should now be supported:
and previously-supported
NodeLists and selectors should be slightly faster because I'm skipping theArray.prototype.slicecall for all.Replaces/includes #95 and #96