任务单 #9173

TreeView#owner causes ilegal efect
开放日期: 2006-10-13 14:07 最后更新: 2006-10-16 22:53

报告人:
属主:
类型:
状态:
关闭
组件:
(无)
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:

Details

----
require "phi"
form = Phi::Form.new
places = Phi::TreeView.new form, :places
mainnode = places.items.add(nil, "nub_1")
newnode = places.items.add_child(mainnode, "nub_2")
newnode.data = "this is my data"

p [mainnode.first_child.data, mainnode.first_child]
p [mainnode.first_child.data, mainnode.first_child]
mainnode.first_child.owner # <= This causes ilegal
effect
p [mainnode.first_child.data, mainnode.first_child] #
<= "mainnode.first_child" returns different object!

=begin
["this is my data", #<Phi::TreeNode:0x17543b8>]
["this is my data", #<Phi::TreeNode:0x17543b8>]
[nil, #<Phi::TreeNode:0x1754160>] # <=
"mainnode.first_child" returns different object!
=end
----

任务单历史 (1/1 Histories)

2006-10-16 22:53 Updated by: moriq
  • Ticket Close date is changed to 2006-10-16 22:53
  • 属主 Update from (无) to moriq
  • 处理结果 Update from to Fixed
  • 状态 Update from 开启 to 关闭
评论
Logged In: YES
user_id=3461

fixed. [ap-dev:2137]

Attachment File List

No attachments

编辑

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登录名