Changeset 80

Show
Ignore:
Timestamp:
08/11/08 22:47:55 (4 months ago)
Author:
bi..@lilyapp.org
Message:

adding a slider

Files:

Legend:

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

    r78 r80  
    387387        //create object- args: className, top, left, objID, variable_length_arguments_to_obj //only the first arg is required. 
    388388        this.createObject=function(name,pID,t,l,id,args,resizeFlag) { 
    389                  
     389                                
    390390                if(this.getObj(id)) 
    391391                        return null; 
     
    445445                        this.patchController.notifyPatchListeners("patchModified"); 
    446446                         
    447                         o.init(); //generic- user defined 
     447                        //call this only if we're not part of patch creation. if we'll opening a patch we'll call init there. 
     448                        if(this.createObject.caller.name!="openPatch") o.init(); //generic- user defined 
     449                         
    448450                } else if(obj && typeof obj == "string") { 
    449451                        var sizeArr = LilyUtils.extractSizeInSubPatch(LilyUtils.readFileFromPath(obj).data);             
     
    781783                 
    782784        //open a patch 
    783         this.openPatch=function(patchStr,id,pID,fileName,patchDir) { 
     785        this.openPatch=function openPatch(patchStr,id,pID,fileName,patchDir) { 
    784786                 
    785787                var opID=id||""; //operation id- has a value if we're pasting 
     
    895897                                                o.controller.select({type:"paste"}); //if we're pasting, select the object after we create it. 
    896898                                        } 
     899                                         
     900                                        o.init(); //generic- user defined- call this again... 
     901                                         
    897902                                } 
    898903                        }