lively.next icon indicating copy to clipboard operation
lively.next copied to clipboard

naming a text log, will get it filled with a log?

Open JensLincke opened this issue 4 years ago • 8 comments

image

it generates weired code inside the object

JensLincke avatar Oct 21 '20 15:10 JensLincke

Are you thinking of the textString property of textMorphs? There is no real textContent property within morphic in lively.next I am aware of.

merryman avatar Oct 21 '20 19:10 merryman

I thought of textString... thanks! But if "textContent" is be undefined ... the text whas empty before I evaluated it and than it was fill with source code that did not belong there I guess?

JensLincke avatar Oct 21 '20 20:10 JensLincke

That on the other hand seems really odd. Can you recover the steps that you did to get there? I cant really reproduce this locally.

merryman avatar Oct 22 '20 09:10 merryman

I dragged out a text, named it "log" and evaluated "textContent" on it.

It might be a side effect of naming it "log"

https://www.dropbox.com/s/yiblgguawr0tu0m/Y53gzFqi3S.mp4?dl=0

JensLincke avatar Oct 22 '20 09:10 JensLincke

Looks like a present Robert left for us: c98366ba093b96cdbd68b985147d93b70764001b ;-)

merryman avatar Oct 22 '20 09:10 merryman

ahhhh the good old times!

rksm avatar Oct 22 '20 12:10 rksm

Hello Robert :-) Do you remember if this was important? Or "kann das weg?" :-)

JensLincke avatar Oct 22 '20 17:10 JensLincke

Well, it was a hack to quickly debug code rewriting. When you open a "log" and evaluate stuff it will print the transpiled code.

It might have been used in other places but nothing that should break...

Sollte also weg können...

rksm avatar Oct 23 '20 12:10 rksm