Plugin Developer DiscussionDiscussion for FogBugz Plugin developers |
||
I've been using the StaticJSFiles in my plug-in pretty extensively, and only recently started adding JS methods that fire when the page is loaded.
I've coded them so they are safe if they are run on pages other than the one intended (assuming they don't also have div elements assigned the BugEvent class), but it does make me a bit nervous that I could be breaking something on a page that is unrelated to my plugin since the StaticJSFiles applies the JS to all pages on the site. My Feature Request: Some additional API capability in StaticJSFiles to specify specific named pages where the JS is added, for example BugView, BugEdit, GridView, ProjectList, etc. |
Powered by FogBugz