Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1432 closed defect (invalid) working?

Reported by: [email protected] Owned by: Bryan Forbes
Priority: high Milestone:
Component: Style Version: 0.3
Keywords: Cc:
Blocked By: Blocking:


I've been trying to use, however it is not being called.

I put an alert inside the beginning of the function to check.

I also made sure it's being loaded, by doing alert(;

Here's the really weird thing.

The alert shows the setStyle code, however the alert I put in is not there.

So just to make sure I setup the path right in the page, I put an alert inside dojo.collections.Dictionary as well, and created a new dictionary.

The alert triggered.

Any ideas?

Attachments (1)

testStyle0.html (1.1 KB) - added by guest 16 years ago.

Download all attachments as: .zip

Change History (6)

Changed 16 years ago by guest

Attachment: testStyle0.html added

comment:1 Changed 16 years ago by [email protected]

I attached the test file.

Note I just tried

without any arguments because I just want the alert to be triggered.

comment:2 Changed 16 years ago by guest

severity: minormajor

OK - After trying just about every trick I could think of, I finally decided to make it real simple and just delete everything in style.js and just have an alert there, like this:


Still nothing.

So, I copy style.js and name it mink.js and I change




Then I require dojo.mink in the test page.

Now I get the alert.

So there must be some loading thing going on in one of the initial files that dojo loads...bootstrap.js, etc.

Here are my system parameters:

Running on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7

comment:3 Changed 16 years ago by dylan

Milestone: 0.4
Owner: changed from anonymous to Bryan Forbes

comment:4 Changed 16 years ago by Tom Trenka

Resolution: invalid
Status: newclosed

The 0.4 release moves the setStyle method into html proper; you'll need to call dojo.html.setStyle(node, classname) as opposed to

Aside from the idea that setStyle will break if you try to pass it no arguments, I don't see any reason why your code won't work as is. Please take a pass with it with the 0.4 HEAD, make the change to dojo.html.setStyle, and see if that works for you.

comment:5 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.