Changeset 80
- Timestamp:
- 08/11/08 22:47:55 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lily/lily/chrome/content/patch.js
r78 r80 387 387 //create object- args: className, top, left, objID, variable_length_arguments_to_obj //only the first arg is required. 388 388 this.createObject=function(name,pID,t,l,id,args,resizeFlag) { 389 389 390 390 if(this.getObj(id)) 391 391 return null; … … 445 445 this.patchController.notifyPatchListeners("patchModified"); 446 446 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 448 450 } else if(obj && typeof obj == "string") { 449 451 var sizeArr = LilyUtils.extractSizeInSubPatch(LilyUtils.readFileFromPath(obj).data); … … 781 783 782 784 //open a patch 783 this.openPatch=function (patchStr,id,pID,fileName,patchDir) {785 this.openPatch=function openPatch(patchStr,id,pID,fileName,patchDir) { 784 786 785 787 var opID=id||""; //operation id- has a value if we're pasting … … 895 897 o.controller.select({type:"paste"}); //if we're pasting, select the object after we create it. 896 898 } 899 900 o.init(); //generic- user defined- call this again... 901 897 902 } 898 903 }
