coconut.bootstrap icon indicating copy to clipboard operation
coconut.bootstrap copied to clipboard

Make it work with coconut.html.

Open back2dos opened this issue 5 years ago • 3 comments

First stab at rendering all views statically. Let's track all issues in this PR.

back2dos avatar May 05 '20 08:05 back2dos

I tried to change target:

interp

compile error: Field index for items not found on prototype bootstrap.ListGroup

PHP

runtime error:

Fatal error: Uncaught ErrorException: Undefined property: bootstrap\ListGroup::$items in c:\xyz\coconut.bootstrap\out\lib\bootstrap\ListGroup.php:198 Stack trace: #0 
c:\xyz\coconut.bootstrap\out\lib\bootstrap\ListGroup.php(198): php\Boot::php\{closure}(8, 'Undefined prope...', 'C:\\xyz\\...', 198, Array) #1 
[internal function]: bootstrap\ListGroup->render() #2 
c:\xyz\coconut.bootstrap\out\lib\php\_Boot\HxClosure.php(67): call_user_func_array(Array, Array) #3 
c:\xyz\coconut.bootstrap\out\lib\coconut\html\View.php(151): php\_Boot\HxClosure->__invoke() #4 
c:\xyz\coconut.bootstrap\out\lib\php\_Boot\HxAnon.php(44): coconut\html\View->coconut\html\{closure}() #5 
c:\xyz\coconut.bootstrap\out\lib\tink\state\_Observable\AutoObservable.php(103): php\_Boot\HxAnon->__call('f', Array) #6 
c:\xyz\coconut.bootstrap\out\lib\tink\state\_Observabl in 
c:\xyz\coconut.bootstrap\out\lib\bootstrap\ListGroup.php on line 198

HashLink 1.11

Works!

markknol avatar May 05 '20 08:05 markknol

Soo, the error was this: https://github.com/HaxeFoundation/haxe/issues/9379

I've made the three render functions in ListGroup optional.

As a side note: if you give a body to an @:attribute function, it can never be null (which is kind of the point).

back2dos avatar May 05 '20 12:05 back2dos

Good to know!

markknol avatar May 05 '20 12:05 markknol