fixing possible source of a bug in y-rt
This commit is contained in:
		
							parent
							
								
									93f3a49396
								
							
						
					
					
						commit
						946a11f03d
					
				
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -389,9 +389,17 @@ module.exports = function() {
 | 
				
			|||||||
    Composition.prototype.type = "Composition";
 | 
					    Composition.prototype.type = "Composition";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Composition.prototype.execute = function() {
 | 
					    Composition.prototype.execute = function() {
 | 
				
			||||||
 | 
					      var composition_ref;
 | 
				
			||||||
      if (this.validateSavedOperations()) {
 | 
					      if (this.validateSavedOperations()) {
 | 
				
			||||||
        this.getCustomType()._setCompositionValue(this._composition_value);
 | 
					        this.getCustomType()._setCompositionValue(this._composition_value);
 | 
				
			||||||
        delete this._composition_value;
 | 
					        delete this._composition_value;
 | 
				
			||||||
 | 
					        if (this.tmp_composition_ref) {
 | 
				
			||||||
 | 
					          composition_ref = this.HB.getOperation(this.tmp_composition_ref);
 | 
				
			||||||
 | 
					          if (composition_ref != null) {
 | 
				
			||||||
 | 
					            delete this.tmp_composition_ref;
 | 
				
			||||||
 | 
					            this.composition_ref = composition_ref;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        return Composition.__super__.execute.apply(this, arguments);
 | 
					        return Composition.__super__.execute.apply(this, arguments);
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
 | 
				
			|||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -342,6 +342,11 @@ module.exports = ()->
 | 
				
			|||||||
      if @validateSavedOperations()
 | 
					      if @validateSavedOperations()
 | 
				
			||||||
        @getCustomType()._setCompositionValue @_composition_value
 | 
					        @getCustomType()._setCompositionValue @_composition_value
 | 
				
			||||||
        delete @_composition_value
 | 
					        delete @_composition_value
 | 
				
			||||||
 | 
					        if @tmp_composition_ref
 | 
				
			||||||
 | 
					          composition_ref = @HB.getOperation @tmp_composition_ref
 | 
				
			||||||
 | 
					          if composition_ref?
 | 
				
			||||||
 | 
					            delete @tmp_composition_ref
 | 
				
			||||||
 | 
					            @composition_ref = composition_ref
 | 
				
			||||||
        super
 | 
					        super
 | 
				
			||||||
      else
 | 
					      else
 | 
				
			||||||
        false
 | 
					        false
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user