tel8618217223380 / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

TClientScriptManager::registerScriptFile too strict #386

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current TClientScriptManager::registerScriptFile() method is too strict, 
and doesn't allow registration of script files when rendering has already begun 
(eg. registration from ::render() methods). However, since <script> inclusions 
are also emitted at the end of the rendering phase, registration in this phase 
should be allowed too.

To correct the issue the

        $this->checkIfNotInRender();

call in the TClientScriptManager::registerScriptFile() method should be removed.

Original issue reported on code.google.com by google...@pcforum.hu on 12 Feb 2012 at 8:08

GoogleCodeExporter commented 9 years ago
patched in r3108, thank you

Original comment by ctrlal...@gmail.com on 12 Feb 2012 at 6:15