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

"RTL feature-detect" changes caused build simple dojo.js can't be loaded #907

Closed
bright-sea opened this issue Apr 27, 2014 · 6 comments
Closed

Comments

@bright-sea
Copy link

After updated to latest dgrid, our after-build single layer dojo.js (include everything, dgrid as well) can't be loaded, the error is
screen shot 2014-04-27 at 10 46 49 am

the error was caused by recently change

35f9504#diff-bead9f16bff9aecbab8689853913bbcd

the problem happened at line:

put(document.body, element, ".dgrid-scrollbar-measure");

that element might be null.

This code works before build, but after build, most of time it will failed at this line, but sometimes it will ok and I can see element is not null.

I put a log statement before this line to print element, and found:

Sometimes, element is a div object and sometime it is an div node
when element is a div object, it will be failed. When element is a domnode like list below, it is Ok.

screen shot 2014-04-27 at 11 02 09 am

But sometime, element is a domnode like below, it will still be failed:

screen shot 2014-04-27 at 11 05 53 am

@bright-sea
Copy link
Author

I had tried to rollback to preview commit version, and found that

if I rollback to March 25th, 2014 version:
1d29031
This issue is the same.

if I rollback to March 11th, 2014 version,
ccfd5be
everything is OK.

So this issue related to the code changes between these two date.

@kfranqueiro
Copy link
Member

You've referenced quite a few commits here, and I'm not sure whether the ones referenced are actually the problem. I suspect that ab64e8e may be what caused the problem for you. Could you verify by testing after ab64e8e and before it (i.e. on 86ad71d)?

@bright-sea
Copy link
Author

I will narrow it down to a particular commitment ASAP.

Thanks

Sent from my iPhone

On May 5, 2014, at 1:38 PM, "Kenneth G. Franqueiro" [email protected] wrote:

You've referenced quite a few commits here, and I'm not sure whether the ones referenced are actually the problem. I suspect that ab64e8e may be what caused the problem for you. Could you verify by testing after ab64e8e and before it (i.e. on 86ad71d)?


Reply to this email directly or view it on GitHub.

@bright-sea
Copy link
Author

Yes, ken. It is exactly ab64e8e commit caused this issue.

@kfranqueiro
Copy link
Member

@bright-sea, I've pushed a branch with an attempted fix to this issue. I haven't had immediate success reproducing the issue internally though, even with a build with dgrid included. Could you verify that the changeset I've pushed fixes the issue for you? Thanks!

@bright-sea
Copy link
Author

@kfranqueiro , yes, this fix works. Thanks.

@ghost ghost closed this as completed in 2fd6380 May 6, 2014
This issue was closed.
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

No branches or pull requests

2 participants