File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8080this . _custom = { } ;
8181if ( custom != null ) {
8282for ( var key in custom ) {
83- if ( custom . hasOwnProperty ( key ) ) {
83+ if ( Object . prototype . hasOwnProperty . call ( custom , key ) ) {
8484this . _custom [ '$' + key ] = custom [ key ] ;
8585}
8686}
480480}
481481else {
482482for ( var key in candidate ) {
483- if ( candidate . hasOwnProperty ( key ) ) {
483+ if ( Object . prototype . hasOwnProperty . call ( candidate , key ) ) {
484484this . _deeperArray ( key ) ;
485485this . _validate ( items , candidate [ key ] ) ;
486486this . _back ( ) ;
10111011}
10121012else {
10131013for ( i in post ) {
1014- if ( post . hasOwnProperty ( i ) ) {
1014+ if ( Object . prototype . hasOwnProperty . call ( post , i ) ) {
10151015this . _deeperArray ( i ) ;
10161016post [ i ] = this . _sanitize ( schema . items , post [ i ] ) ;
10171017this . _back ( ) ;
14301430var prop = schema . properties || { } ;
14311431
14321432for ( var key in prop ) {
1433- if ( prop . hasOwnProperty ( key ) ) {
1433+ if ( Object . prototype . hasOwnProperty . call ( prop , key ) ) {
14341434if ( prop [ key ] . optional === true && _rand . bool ( ) === true ) {
14351435continue ;
14361436}
You can’t perform that action at this time.
0 commit comments