#15722 closed defect (worksforme)
dojo/ready does not fire but dojo/domReady! does
Reported by: | Chris2 | Owned by: | Rawld Gill |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Loader | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I'm not sure if it is really a dojo/ready issue, maybe it is related to dojox.av.FLVideo.
Doesn't work:
require(["dojo/ready", "dojo/dom", "dojox/av/FLVideo"], function(ready, dom, FLVideo) { ready(function(){ var myVideo = new FLVideo({ initialVolume:.1, mediaUrl: moviePath, autoPlay:true, isDebug:false, onEnd: function() { alert("video ended"); } }, "movieDiv"); }); });
Works:
require(["dojo/dom", "dojox/av/FLVideo", "dojo/domReady!"], function(dom, FLVideo) { var myVideo = new FLVideo({ initialVolume:.1, mediaUrl: moviePath, autoPlay:true, isDebug:false, onEnd: function() { alert("video ended"); } }, "movieDiv"); });
Since bill mentioned in #15700 that dojo/domReady! is currently not recommended (with dijit) i would expect that "dojo/ready" should work at least in same cases as "dojo/domReady!" does.
Change History (5)
comment:1 Changed 8 years ago by
comment:2 follow-up: 3 Changed 8 years ago by
While trying to set up a little standalone example i realized that it must have something to do with the dojo-build i created using the web-builder. Since when including dojo via CDN it works well with dojo/ready.
So it is most certainly an dojox/av/FLVideo or WebBuilder?-Issue. See #15707
comment:3 Changed 8 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Replying to Chris2:
So it is most certainly an dojox/av/FLVideo or WebBuilder?-Issue. See #15707
OK, in that case, I'm going to close this ticket.
comment:4 follow-up: 5 Changed 8 years ago by
Why did you close the ticket? Yes, some files were missing in the WebBuilder?-build but it is still strange that it works with dojo/domReady! while dojo/ready fails. It is just a problem to make a test-case using my custom-build.
comment:5 Changed 8 years ago by
Replying to Chris2:
Why did you close the ticket? Yes, some files were missing in the WebBuilder?-build but it is still strange that it works with dojo/domReady! while dojo/ready fails. It is just a problem to make a test-case using my custom-build.
Because your last report indicated that there was no problem with dojo/ready. And because you have not provided a reduced test case.
If you can provide a reduced test case, then open a new ticket and I'll do my best to help.
Please understand that neither I nor other committers have time to debug individual applications and/or chase down fuzzy problems with our volunteer time.
Any change you can give me a complete, *reduced* application. If you can, I'll try to investigate immediately.