diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-01-20 08:16:44 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-01-20 08:16:44 +0100 |
| commit | 2b9e8c8dbbe55a2297340deb2fd685bbf881e153 (patch) | |
| tree | c889f00e665e2e64904f51c5a036f13709b89529 /src/GraphicObjects | |
| parent | 33d043a799a4dc1e57eabd8999bddbf0543f0fbc (diff) | |
code clean and comment
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 70334e12..e0e6affc 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -705,7 +705,7 @@ namespace Crow string expression; if (!getDefaultEvent(ei, styling, out expression)) continue; - //TODO:dynEventHandler could be cached somewhere, maybe a style instanciato class holding the styling delegate and bound to it. + //TODO:dynEventHandler could be cached somewhere, maybe a style instanciator class holding the styling delegate and bound to it. foreach (string exp in CompilerServices.splitOnSemiColumnOutsideAccolades(expression)) { string trimed = exp.Trim(); if (trimed.StartsWith ("{", StringComparison.OrdinalIgnoreCase)){ @@ -718,6 +718,7 @@ namespace Crow il.Emit (OpCodes.Call, CompilerServices.miGetEvent); //push expression as 2nd arg of compile il.Emit (OpCodes.Ldstr, trimed.Substring (1, trimed.Length - 2)); + //push null as 3rd arg, currentNode, not known when instanciing il.Emit (OpCodes.Ldnull); il.Emit (OpCodes.Callvirt, CompilerServices.miCompileDynEventHandler); il.Emit (OpCodes.Castclass, ei.EventHandlerType); |