Opened 9 years ago

Closed 8 years ago

#10752 closed defect (fixed)

[patch][cla?]dojo.clone doesn't work for RegExp

Reported by: tplaskowski Owned by: Eugene Lazutkin
Priority: high Milestone: 1.6
Component: General Version: 1.4.0
Keywords: clone regexp Cc: tplaskowski@…
Blocked By: Blocking:

Description

dojo.clone doesn't clone RegExp?.
Browsers: Firefox 3.6, IE 7 and 8
OS: Windows XP and Vista.

Example:

dojo.clone(new RegExp("foo"));
dojo.clone(new RegExp(/foo/));
dojo.clone(/foo/);

gives /(?:)/ in Firefox and in IE.

I found this trying to connect ItemFileReadStore? with FilteringSelect? and using RegExp? in query object.

Attachments (1)

lang.patch (366 bytes) - added by tplaskowski 9 years ago.
Patch for dojo.clone

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by tplaskowski

Attachment: lang.patch added

Patch for dojo.clone

comment:1 Changed 9 years ago by James Burke

Milestone: tbdfuture
Owner: changed from anonymous to Eugene Lazutkin
Summary: dojo.clone doesn't work for RegExp[patch][cla?]dojo.clone doesn't work for RegExp

comment:2 Changed 9 years ago by Eugene Lazutkin

Milestone: future1.6
Status: newassigned

comment:3 Changed 8 years ago by Eugene Lazutkin

Resolution: fixed
Status: assignedclosed

(In [23736]) base: added RegExp? processing to dojo.clone(), thx tplaskowski!, !strict, fixes #10752.

Note: See TracTickets for help on using tickets.