Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#10389 closed defect (worksforme)

TitlePane: not working when "duration" property is set in js file

Reported by: Kenta Takahashi Owned by: anonymous
Priority: high Milestone: tbd
Component: Dijit Version: 1.3.2
Keywords: Cc:
Blocked By: Blocking:


Hello, I found when "duration" property is set in js file, TitlePane? is not working. Here is sample code.


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<link href="./dojo/resources/dojo.css" rel="stylesheet" type="text/css">
<link href="./dijit/themes/tundra/tundra.css" rel="stylesheet" type="text/css">
<title>Dojo TitlePane sample</title>
<script type="text/javascript" src="./dojo/dojo.js" djConfig="parseOnLoad: true"></script>
<script type="text/javascript" src="./titlepane.js"></script>
<body class="tundra">
<div id="mytitlepane">
Click Title!



dojo.addOnLoad(function() {
var tp = new dijit.TitlePane( {
duration :600,
title :'My TitlePane',
open :'true'
}, dojo.byId("mytitlepane"));

When deleting "duration :600," line in titlepane.js, this script can work. And TitlePane? are worked when "duration" property is set in html. (For example, <div dojoType="dijit.TitlePane?" title="My TitlePane?" open="true" duration="600">)


Change History (2)

comment:1 Changed 13 years ago by bill

Resolution: worksforme
Status: newclosed

Works fine for me.

You description that "TitlePane is not working" is very vague, and you didn't say which browser was failing. I tried it on FF3.5.5/mac and the TitlePane opened/closed fine.

Thanks for giving the test case. In the future please attach test cases using the "Attach file" button.

comment:2 Changed 13 years ago by bill

Component: GeneralDijit
Summary: Not working TitlePane when "duration" property is set in js fileTitlePane: not working when "duration" property is set in js file
Note: See TracTickets for help on using tickets.