Skip to content

Commit

Permalink
base: added RegExp processing to dojo.clone(), thx tplaskowski!, !str…
Browse files Browse the repository at this point in the history
…ict, fixes #10752.

git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@23736 560b804f-0ae3-0310-86f3-f6aa0a117693
  • Loading branch information
uhop committed Feb 5, 2011
1 parent 7b6de05 commit 80954c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _base/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ define("dojo/_base/lang", ["dojo/lib/kernel"], function(dojo){
// Date
return new Date(o.getTime()); // Date
}
if(o instanceof RegExp){
// RegExp
return new RegExp(o); // RegExp
}
var r, i, l, s, name;
if(d.isArray(o)){
// array
Expand Down

0 comments on commit 80954c3

Please sign in to comment.