Changeset 47
- Timestamp:
- 06/18/08 21:07:23 (6 months ago)
- Files:
-
- trunk/lily/lily/chrome/content/externals/patcher.js (modified) (2 diffs)
- trunk/lily/lily/chrome/content/externals/receive.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/subpatch.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/object.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lily/lily/chrome/content/externals/patcher.js
r43 r47 54 54 //if there any additional args, strip out the classname and assign them to display args. otherwise displayargs = false. 55 55 this.displayArgs = (!/^##\w+##/.test(this.patchArgs))?this.patchArgs.replace(/##\w+##/,""):false; 56 this.loadsSubPatchByName = true; 56 57 } 57 58 … … 63 64 function replacePatchArgs(arg_str,data) { 64 65 var patch_str = data; 65 var tmp = LilyUtils.splitArgs(arg_str );66 var tmp = LilyUtils.splitArgs(arg_str.replace(/##\w+##/,"")); 66 67 for(var i=0;i<tmp.length;i++) { 67 68 var re = new RegExp("\\#"+(i+1),"g"); trunk/lily/lily/chrome/content/externals/receive.js
r1 r47 59 59 var tmp = Lily.receiveObjects[thisPtr.receiveName]; 60 60 for(var i=0;i<tmp.length;i++) { 61 if(tmp[i] .objID==thisPtr.objID) {61 if(tmp[i] === thisPtr) { 62 62 tmp.splice(i,1); 63 63 if(!tmp.length) { trunk/lily/lily/chrome/content/externals/subpatch.js
r24 r47 243 243 //clean up the subpatch 244 244 this.destructor=function() { 245 thisPtr.parent.patchView.oWin.focus(); //restore focus so the iframe doesn't steal it. 245 246 if(thisPatch.obj) { thisPatch.obj.close(); } 246 247 thisPatch = {obj:null,id:pid,file:null,json:null}; //reset the thispatch object trunk/lily/lily/chrome/content/object.js
r44 r47 32 32 */ 33 33 function LilyObjectBase(name,parent,pID,top,left,id,args) 34 { 34 { 35 this.type="object"; // 35 36 this.parent=parent; //pointer to patch 36 37 this.name=name; //classname … … 59 60 this.resize=true; //should the object be resizable 60 61 this.displayArgs=true; //should we see objects arguments (for non-UI objects only) 61 this. type="object";62 this.loadsSubPatchByName = false; //true when a subpatch is invoked by name 62 63 63 64 this.ui=null; //to filled in when view instantiates … … 415 416 if((e.altKey && !LilyUtils.controlOrCommand(e)) && !thisPtr.controller.objDrag.pasted) { 416 417 if(thisPtr.name!="tmp") { 417 Lily.openHelpPatch( thisPtr.name);418 Lily.openHelpPatch((thisPtr.controller.objView.parent.loadsSubPatchByName)?thisPtr.controller.objView.parent.displayName:thisPtr.name); 418 419 } else if(thisPtr.controller.objInputControl.objInput && thisPtr.controller.objInputControl.objInput.value) { 419 420 var name = thisPtr.controller.objInputControl.objInput.value.split(" ")[0];
