Changes

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

edits

Navigation menu