Opened 10 years ago

Closed 10 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:


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 like so

// dojo.requireIf(!dojo.isWebKit, "");

Steps to reproduce: Run the attached file. This used to work perfectly on 1.6 (with the old dojoType attributes).

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Paul Christopher

Attachment: test.html added

comment:1 Changed 10 years ago by Atsushi Ono

How about adding dojo.require("") statement? is not loaded simply by adding dojo.require("") 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("") statement in dojo 1.6 either, except in the case of using the custom build including

comment:2 Changed 10 years ago by ykami

Cc: Atsushi Ono added

comment:3 Changed 10 years ago by Paul Christopher

Yes, it's my fault! Indeed it is the missing dojo.require("")- as pointed out by onoat! Sorry for this!

comment:4 Changed 10 years ago by ykami

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