laracasts / PHP-Vars-To-Js-Transformer

Transform PHP data to JavaScript.
https://packagist.org/packages/laracasts/utilities
MIT License
2.21k stars 219 forks source link

window.height() becomes document.height() when inserting data #82

Closed blomdahldaniel closed 7 years ago

blomdahldaniel commented 8 years ago

Hi!

When data is sent to the view throuhg for example:

\JavaScript::put([ 'myVar' => $data ]);

It breaks the window.height() value. The window.height() becomes the document.heithgt() value..

Does anyone know a workaround for this? Can this be fixed or is it a obvious conflict..?