Opened 10 years ago
Closed 10 years ago
#11761 closed defect (invalid)
Programmatic creation of a text box fails with: this.type.toLowerCase is not a function
Reported by: | spidey2099 | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Dijit | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The application has the requirements for building a text box. This works as specified in 1.4.N. However in 1.5, it fails with the message this.type.toLowerCase is not a function. Examining the code reveals that the call to function, which was not present in 1.4 is present in 1.5. However, it appears that it is not a declared function.
Change History (3)
comment:1 Changed 10 years ago by
Component: | General → Dijit |
---|---|
Owner: | anonymous deleted |
comment:2 Changed 10 years ago by
So - I did some more testing and found that in 1.5, the text box expects the paramter "type" to be a string. Consequently it performs a toLowerCase operation on the type object. this.type.toLowerCase().
I was passing in an array and consequently the error appeared. I changed my code to pass in a string and now text boxes are rendered correctly.
So it's not a bug.
comment:3 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
details, please? test case?