kopia lustrzana https://github.com/backface/turtlestitch
				
				
				
			Remove clone function (unused)
							rodzic
							
								
									f54da26e8e
								
							
						
					
					
						commit
						d5761b074d
					
				
							
								
								
									
										10
									
								
								morphic.js
								
								
								
								
							
							
						
						
									
										10
									
								
								morphic.js
								
								
								
								
							| 
						 | 
				
			
			@ -1242,16 +1242,6 @@ function getDocumentPositionOf(aDOMelement) {
 | 
			
		|||
    return pos;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function clone(target) {
 | 
			
		||||
    // answer a new instance of target's type
 | 
			
		||||
    if (typeof target === 'object') {
 | 
			
		||||
        var Clone = function () {nop(); };
 | 
			
		||||
        Clone.prototype = target;
 | 
			
		||||
        return new Clone();
 | 
			
		||||
    }
 | 
			
		||||
    return target;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function copy(target) {
 | 
			
		||||
    // answer a shallow copy of target
 | 
			
		||||
    var value, c, property;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -105,7 +105,7 @@ InspectorMorph, ListMorph, Math, MenuItemMorph, MenuMorph, Morph,
 | 
			
		|||
MorphicPreferences, MouseSensorMorph, Node, Object, PenMorph, Point,
 | 
			
		||||
Rectangle, ScrollFrameMorph, ShadowMorph, SliderButtonMorph,
 | 
			
		||||
SliderMorph, String, StringFieldMorph, StringMorph, TextMorph,
 | 
			
		||||
TriggerMorph, WorldMorph, clone, contains, copy, degrees, detect,
 | 
			
		||||
TriggerMorph, WorldMorph, contains, copy, degrees, detect,
 | 
			
		||||
document, getDocumentPositionOf, isNaN, isObject, isString, newCanvas,
 | 
			
		||||
nop, parseFloat, radians, standardSettings, touchScreenSettings,
 | 
			
		||||
useBlurredShadows, version, window, modules, IDE_Morph, VariableDialogMorph,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue