@@ -25,7 +25,7 @@ function clone(parent, circular, depth, prototype) {
2525 depth = circular . depth ;
2626 prototype = circular . prototype ;
2727 filter = circular . filter ;
28- circular = circular . circular
28+ circular = circular . circular ;
2929 }
3030 // maintain two arrays for circular references, where corresponding parents
3131 // and children have the same index
@@ -46,7 +46,7 @@ function clone(parent, circular, depth, prototype) {
4646 if ( parent === null )
4747 return null ;
4848
49- if ( depth == 0 )
49+ if ( depth === 0 )
5050 return parent ;
5151
5252 var child ;
@@ -125,22 +125,22 @@ clone.clonePrototype = function clonePrototype(parent) {
125125
126126function __objToStr ( o ) {
127127 return Object . prototype . toString . call ( o ) ;
128- } ;
128+ }
129129clone . __objToStr = __objToStr ;
130130
131131function __isDate ( o ) {
132132 return typeof o === 'object' && __objToStr ( o ) === '[object Date]' ;
133- } ;
133+ }
134134clone . __isDate = __isDate ;
135135
136136function __isArray ( o ) {
137137 return typeof o === 'object' && __objToStr ( o ) === '[object Array]' ;
138- } ;
138+ }
139139clone . __isArray = __isArray ;
140140
141141function __isRegExp ( o ) {
142142 return typeof o === 'object' && __objToStr ( o ) === '[object RegExp]' ;
143- } ;
143+ }
144144clone . __isRegExp = __isRegExp ;
145145
146146function __getRegExpFlags ( re ) {
@@ -149,7 +149,7 @@ function __getRegExpFlags(re) {
149149 if ( re . ignoreCase ) flags += 'i' ;
150150 if ( re . multiline ) flags += 'm' ;
151151 return flags ;
152- } ;
152+ }
153153clone . __getRegExpFlags = __getRegExpFlags ;
154154
155155return clone ;
0 commit comments