Opened 8 years ago

Closed 8 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)

test.html (1.3 KB) - added by Paul Christopher 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by Paul Christopher

Attachment: test.html added

comment:1 Changed 8 years ago by Atsushi Ono

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.

comment:2 Changed 8 years ago by ykami

Cc: Atsushi Ono added

comment:3 Changed 8 years ago by Paul Christopher

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 8 years ago by ykami

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.