-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Replace use of parseJSON with JSON.parse #4517
Conversation
Why exactly @danharrin? Micro optimization? :) Minor note: |
Yup @w20k, I should be doing a few of these PRs. There is really no reason to be relying on jQuery in these situations when there are well-browser-supported Vanilla alternatives. As well as very minor optimisation improvements, these changes allow for better developer understanding of October's codebase, without prior knowledge of jQuery. I've just added another fix for |
@danharrin add all the fixes or what you did in the description ;) Thanks! |
@w20k all done :) |
That fix is done, anything else @w20k? |
@danharrin should be all ;) Will quickly test, after you're done, and ready for the next release 458. |
All done @w20k :) also just added some very simple |
Hey @w20k, any reason in particular why this was blocked? |
@danharrin it's labeled blocked just to ensure it won't be merged or processed before the next build. Those are waiting for their turn :) |
@danharrin what's the browser support for these changes? Specifically IE. |
@LukeTowers |
I feel like these methods are more clear (except perhaps in the case of the JSON) as their jQuery counterparts instead. |
Jquery under the hood is using those as well :) Pretty much, only |
@danharrin alright, can you change this to only be the parseJSON replacement? |
Will sort out now @LukeTowers 👍 |
@LukeTowers done it sorry, got sidetracked 😆 |
@danharrin can you merge develop into your branch and run the compile again? |
Sorted @LukeTowers 👍 |
@LukeTowers I guess it could be merged. From jQuery Dev build 😄: |
This replaces the use of jQuery's
parseJSON
with its Vanilla alternative,JSON.parse
.