Changes

Jump to navigation Jump to search
m
no edit summary
Line 134: Line 134:  
if ( control_3 != undefined ) {
 
if ( control_3 != undefined ) {
 
inp_obj[ control_1 ] = inp_obj[ control_1 ] || (isNaN( control_2 )) ? {} : [];
 
inp_obj[ control_1 ] = inp_obj[ control_1 ] || (isNaN( control_2 )) ? {} : [];
inp_obj[ control_1 ][ control_2 ] = inp_obj[ control_1 ][ control_2 ] || [];
+
inp_obj[ control_1 ][ control_2 ] = control_3; // => "Bob"
if ( Array.isArray( inp_obj[ control_1 ][ control_2 ] ) ) {
  −
inp_obj[ control_1 ][ control_2 ].push( control_3 );
  −
} else {
  −
inp_obj[ control_1 ][ control_2 ] = control_3; // => "Bob"
  −
}
   
store.put(inp_obj);
 
store.put(inp_obj);
 
} else {
 
} else {
Line 183: Line 178:  
}
 
}
 
}
 
}
 +
store.put(inp_obj);
 
}
 
}
  
530

edits

Navigation menu