May. 5th, 2011

mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
[staff profile] mark
Bugzilla and Mercurial are running on a server that is going to get migrated to a new home sometime in the next few days. There will be a little downtime when this happens. I'll try to keep it to a minimum and will, of course, take proper precautions to ensure data integrity.

Thanks all.
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu
One background issue that keeps cropping up is that with our current JS code, we need to explicitly initialize handlers for any new content that's loaded on the page. That's why, for example, AJAXified polls and the cut tag expander wouldn't play nice at first. We had to tell the cut tag expander to explicitly initialize the JS for any polls in the newly loaded cut tag content.

As you can imagine (Bob) this isn't very fun. Inevitably, we end up forgetting edge cases, which we only turn up after a user has run into the issue and reported it. (We probably have three or four outstanding bugs that have to do with how we haven't called the init function on this page, or after doing that action, and well it's a pain.)

So a thought: I propose we start using jQuery's .live() function in conjunction with a custom event. cut for examples and discussion of efficiency )

ETA:
It looks like .delegate() is a better alternative to .live() (thanks [personal profile] jproulx!

Profile

dw_dev: The word "develop" using the Swirly D logo.  (Default)
Dreamwidth Open Source Development

June 2026

S M T W T F S
  123456
78910111213
14151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 3rd, 2026 12:16 am
Powered by Dreamwidth Studios