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

Reduce some Qx and switch to native #953

Merged
merged 30 commits into from
Oct 28, 2019
Merged

Conversation

ChristianMayer
Copy link
Member

See also #772

This patch reduces the vendor lock in to Qx in about 1000 instances where native JavaScript does the job exactly as well as the Qx layer on top of it.

So this patch means that for each of those actions less code is being run (should give a minimal speed advantage), the code is (at least uncompressed) smaller by about 3.6kb and - most importantly - helps us to stay as independent from any unnecessary code as possible.

There are still many places that would benefit from such a clean up, but it must start somewhere.

Helps the user to identify the issue when the server doesn't want to
connect the SOAP due to missing certificates when the correct config
option wasn't set.
@ChristianMayer ChristianMayer added this to To do in Next Release via automation Sep 15, 2019
@ChristianMayer ChristianMayer changed the title Reduce qx and switch to native Reduce some Qx and switch to native Sep 15, 2019
@coveralls
Copy link

coveralls commented Sep 19, 2019

Coverage Status

Coverage decreased (-0.06%) to 59.259% when pulling d696d27 on ChristianMayer:reduce_qx into 84497bb on CometVisu:develop.

@@ -6,7 +6,7 @@ describe("testing a %WIDGET_NAME% widget", function() {

it("should test the %WIDGET_NAME% creator", function() {
var res = this.createTestWidgetString("%WIDGET_NAME%", {}, "<label>Test</label>");
var widget = qx.bom.Html.clean([res[1]])[0];
var widget = (function(){var div=document.createElement('div');div.innerHTML=res[1];return div.childNodes[0];})();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it is not really clear what this function does, it should be declared somewhere outside the tests with a self explaining name and a little description. That function can be used everywhere, where qx.bom.Html.cleangot replaced.

@peuter peuter merged commit 025adc8 into CometVisu:develop Oct 28, 2019
Next Release automation moved this from To do to Done Oct 28, 2019
@ChristianMayer ChristianMayer deleted the reduce_qx branch November 2, 2019 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Next Release
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants