Changeset 44

Show
Ignore:
Timestamp:
06/09/08 22:46:25 (6 months ago)
Author:
bi..@lilyapp.org
Message:

fix bug introduced with fixes for ticket #22
fix bug #15

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lily/lily/chrome/content/externals/processing.js

    r19 r44  
    8989        //stop the loop & refresh the object 
    9090        this.inlet1["refresh"]=function() { 
     91                Lily.toggleEdit(); 
    9192                thisPtr.parent.replaceObject(thisPtr,"processing",(thisPtr.width+" "+thisPtr.height)); 
     93                Lily.toggleEdit();       
    9294        } 
    9395         
  • trunk/lily/lily/chrome/content/externals/svg.js

    r34 r44  
    244244        function _refresh() { 
    245245                _kill(); 
    246                 releaseObservers();              
     246                releaseObservers(); 
     247                Lily.toggleEdit();                               
    247248                thisPtr.parent.replaceObject(thisPtr,"svg",(thisPtr.width+" "+thisPtr.height)); 
     249                Lily.toggleEdit(); 
    248250        } 
    249251         
  • trunk/lily/lily/chrome/content/object.js

    r42 r44  
    3535        this.parent=parent; //pointer to patch 
    3636        this.name=name; //classname 
     37        this.displayName=LilyUtils.getObjectMetaData(name).textName; 
    3738        this.subPatcherID=pID||null //patch id if created as part of a sub-patch 
    3839        this.objID=id; //object id 
  • trunk/lily/lily/chrome/content/patch.js

    r42 r44  
    383383                         
    384384                        if(o.displayName==undefined) 
    385                                 o.displayName=LilyUtils.getObjectMetaData(className).htmlName; 
     385                                o.displayName=LilyUtils.getObjectMetaData(className).textName; 
    386386                                                 
    387387                        if(!o.ui) { //if no custom html defined 
     
    433433                oldObj.controller.replacing=true;                
    434434                var args=newArgs; 
    435                          
     435                                                
    436436                var saveConnections=(oldObj.controller.objView.display==newObjName)?true:false; 
    437437                var newID=(oldObj.controller.objView.display==newObjName)?id:null; 
     
    492492                        } 
    493493                } 
    494                  
     494                                
    495495                //then recreate the connnections for the new object here 
    496496                if(saveConnections) 
     
    504504        this.restoreConnections=function(connections) { 
    505505                for(var i=0;i<connections.length;i++) { 
    506                         this.createConnection(connections[i].inlet,connections[i].outlet,connections[i].segmentArray,null) 
     506                        var c = this.createConnection(connections[i].inlet,connections[i].outlet,connections[i].segmentArray,null); 
     507                        if(c && typeof connections[i].hiddenInPerf!="undefined") 
     508                                c.controller.setHiddenInPerf(connections[i].hiddenInPerf); 
    507509                } 
    508510        }