changeset 107:152b6cfb98b6

Click-to-select no longer selects the whole lambda when it shouldn't and no longer replaces the selected code with a single symbol.
author Mike Pavone <pavone@retrodev.com>
date Fri, 12 Apr 2013 19:27:33 -0700
parents 76a21129e8f5
children 5099c1a96e3f
files src/editor.tp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/editor.tp	Fri Apr 12 19:25:54 2013 -0700
+++ b/src/editor.tp	Fri Apr 12 19:27:33 2013 -0700
@@ -70,7 +70,7 @@
 	each: syms :idx key {
 		inscope appendChild: (newEl: "li" #{
 			textContent <- key
-			onclick <- { handler: key }
+			onclick <- :Event { handler: key }
 		})
 	}
 }
@@ -81,7 +81,7 @@
 		domnode textContent!: key
 		astnode name!: key
 	}
-	event stopPropagation
+	event stopPropagation: (foreign: undefined)
 }
 
 funClick <- :domnode astnode event {
@@ -92,7 +92,7 @@
 		isLambda: ((symtable find: sym) def)
 	}
 	popInscope: syms onClick: {}
-	event stopPropagation
+	event stopPropagation: (foreign: undefined)
 }
 
 lambdaClick <- :domnode astnode event {