Opened 9 years ago
Closed 9 years ago
#13877 closed defect (invalid)
Simple test page gives "TypeError: 'undefined' is not an object (evaluating '_a.prototype')" on Webkit
Reported by: | Paul Christopher | Owned by: | ykami |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | DojoX Mobile | Version: | 1.7.0b1 |
Keywords: | Cc: | Atsushi Ono | |
Blocked By: | Blocking: |
Description
Version: Dojo Nightly Build Fri Sep 09 2011
Browser: Webkit / Mobile Webkit
Description: Running the simple test file (as attached below) triggers a "TypeError: 'undefined' is not an object (evaluating '_a.prototype')" on Webkit browsers.
You can force this behaviour on other browsers by commenting out dojox.mobile.compat like so
// dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat");
Steps to reproduce: Run the attached file. This used to work perfectly on dojox.mobile 1.6 (with the old dojoType attributes).
Attachments (1)
Change History (5)
Changed 9 years ago by
comment:1 Changed 9 years ago by
comment:2 Changed 9 years ago by
Cc: | Atsushi Ono added |
---|
comment:3 Changed 9 years ago by
Yes, it's my fault! Indeed it is the missing dojo.require("dojox.mobile.ScrollableView?")- as pointed out by onoat! Sorry for this!
comment:4 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
How about adding dojo.require("dojox.mobile.ScrollableView") statement?
dojox.mobile.ScrollableView is not loaded simply by adding dojo.require("dojox.mobile") statement, so you have to load it explicitly. It is as same as in dojo 1.6, so I do not think it works without dojo.require("dojox.mobile.ScrollableView") statement in dojo 1.6 either, except in the case of using the custom build including dojox.mobile.ScrollableView.