ZF-5667: ZendX_JQuery Produces Script Output When Not Used

Issue Type: Bug Created: 2009-02-01T14:24:50.000+0000 Last Updated: 2009-02-21T01:01:34.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Simon Corless (sico) Assignee: Benjamin Eberlei (beberlei) Tags: - ZendX_JQuery

Related issues: Attachments:


When setting your own paths for local jQuery they render whether you are using a jQuery feature or not. Where as when using CDN they don't.

$this->jQuery()->setLocalPath('path') $this->jQuery()->setUiLocalPath('path')

It's 'excessive' loading to load the files even when not needed. I've also noticed that disable() and uidisable() don't seem to have any effect when you set a local path.

Update - To be clearer I don't think the enable methods ($this->enable(); and $this->uiEnable()) should be called by the setLocalPath() and setUiLocalPath() as you (or I do!) want to set these in your bootstrap and not every time you call the helper. There fore if you sett hem it automatically enables jQuery, which is not the same thing!


Posted by Benjamin Eberlei (beberlei) on 2009-02-03T10:10:22.000+0000

i have talked to matthew, the dojo helper does it the same way. We are discussing to change this for 1.8 though, because you are right the behaviour is not really required this way.

Posted by Benjamin Eberlei (beberlei) on 2009-02-21T01:01:31.000+0000

Fixed in trunk, will be included in 1.8 release, because the fix introduces slight BC.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.