Ignore:
Timestamp:
03/01/12 14:51:37 (12 years ago)
Author:
airton
Message:

Ticket #2088 - Melhorias no editor de regras de filtro de mensagens do Expresso - Pequenas correcoes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/api/datalayer.js

    r5592 r5601  
    745745                  DataLayer.move( concept, id, data[URI].id ); 
    746746                 
    747                 DataLayer.put( concept, id, data[URI], false ); 
     747                DataLayer.put( concept,  data[URI].id || id, data[URI], false ); 
    748748            } 
    749749             
     
    833833            if ( source === null ) return null; 
    834834 
    835             // All non-objects use value semantics and don't need explict copying. 
    836             if ( typeof source !== 'object' ) return source; 
     835            // All non-objects use value semantics and don't need explict copying.         
     836                if ( typeof source !== 'object' ) return source; 
    837837 
    838838            if( !depth || !(depth instanceof RecursionHelper) ) depth = new RecursionHelper(depth); 
     
    10851085              var newResult = []; 
    10861086             
    1087               for( var i = 0; i < result.length; i++ ) 
    1088                   newResult[i] = $.extend( {}, result[i] ); 
     1087              $.each( result, function( i, res ){ 
     1088                        newResult[ i ] = $.extend( {}, res ); 
     1089                  }); 
    10891090 
    10901091              this.put( concept, id, newResult, false ); 
Note: See TracChangeset for help on using the changeset viewer.