Opened 7 years ago
Last modified 5 years ago
#18128 assigned defect
query.NodeList() is not a function when !css3 is specified
Reported by: | ChristianHeinrich | Owned by: | dylan |
---|---|---|---|
Priority: | undecided | Milestone: | 1.15 |
Component: | Query | Version: | 1.10.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Apparently something is going wrong - if "!css3" is left out, everything works as expected.
This code breaks, resulting in "TypeError?: query.NodeList? is not a function"
require(["dojo/query!css3"], function(query) { console.log(query.NodeList()); });
but this works just fine:
require(["dojo/query"], function(query) { console.log(query.NodeList()); });
I created a jsfiddle:
Note that "query.NodeList?()" is explicitly mentioned in the docs:
http://dojotoolkit.org/reference-guide/1.10/dojo/NodeList.html#dojo-nodelist
However, dojo.NodeList?() still works in both cases. Is dojo.NodeList?() recommended? I only found this when looking at the source code...
Change History (2)
comment:1 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|---|
Owner: | set to dylan |
Status: | new → assigned |
comment:2 Changed 5 years ago by
Milestone: | 1.13 → 1.15 |
---|
Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.
Confirmed, will investigate for Dojo 1.12.