Ticket #2456 (new defect)
[testcase] dojo.clone mangles object methods during clone
| Reported by: | guest | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3 |
| Component: | Core | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Steps to reproduce:
o = {}
[object Object]
>>> o.f = function () {dojo.debug("SSS");}
function () {...}
>>> o2 = dojo.lang.shallowCopy(o, true)
[object Object]
>>> o.f()
SSSdojo.js (line 237)
>>> o2.f()
>>> o2 = dojo.lang.shallowCopy(o, false)
[object Object]
>>> o2.f()
SSS
Dojo 0.4.1 on Firefox 2.0/Ubuntu Linux 6.10
My contact info: apa3a at yahoo dot com
Attachments
Change History
Note: See
TracTickets for help on using
tickets.