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

Improve select view update #271

Closed
wants to merge 6 commits into from
Closed

Improve select view update #271

wants to merge 6 commits into from

Conversation

NekR
Copy link

@NekR NekR commented Jan 7, 2015

Remove unnecessary tree recreation when no selectConfig given.

Please review the code, there are additional comments inline. Thank you.

Remove unnecessary tree recreation when no selectConfig given
@NekR
Copy link
Author

NekR commented Jan 7, 2015

Ohh, build failed but I cannot find any info where it did. So still need a review..

// then I will remove this code. If it's possible, then I will enable it

var check = function(val) {
return _.isArray(val) || _.isObject(val);
Copy link
Contributor

Choose a reason for hiding this comment

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

If _.isArray(val) passes _.isObject(val) will pass as well. Check can just be _.isObject

Copy link
Author

Choose a reason for hiding this comment

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

This behavior of _.isObject is strange to me, but thanks for correction!

Copy link
Author

Choose a reason for hiding this comment

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

I mean I understand why, because it's JS and Array also is object, but I just thought what that helper is more advanced.

@NekR
Copy link
Author

NekR commented Jan 15, 2015

Hi there!

I just ran your tests on my PC and got these lines:

Took 943ms to run 374 tests. 328 passed, 46 failed.
Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL file://test/vendor/runner.js. Domains, protocols and ports must match.

Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL file://test/vendor/runner.js. Domains, protocols and ports must match.

Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL file://test/vendor/runner.js. Domains, protocols and ports must match.

npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

How can I find details of those 46 failed tests?

Thank you.

@NekR
Copy link
Author

NekR commented Jan 15, 2015

Also please check code from this line: NekR@2ad0c02#diff-364c5eb07781db1e01c409c274426984R520
Does any one has thoughts about the way how that should be handled?

@NekR
Copy link
Author

NekR commented Jan 15, 2015

Ok, I temporarily restored full usage of "stickit-bind-val" but this does not fixed all fails. 6 of them are still remaining and I have no idea which they are.

@megawac
Copy link
Contributor

megawac commented Jan 15, 2015

@NekR
Copy link
Author

NekR commented Jan 15, 2015

@megawac too late but thank you anyway! I just added manually logging in runner.js.

So now build is passed, please, review it again.

@pwolaq
Copy link

pwolaq commented Sep 1, 2016

Hello,

Any update on this? It would be great to have documentFragment as it will really boost my application's performance.

@NekR NekR closed this Feb 12, 2017
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.

4 participants