yui/yui2 — pull request #10 by mattpowell (2012-01-04 17:47:57+00:00)
Title: Fix for YAHOO.util.Get.css firing onSuccess callback twice in Firefox 9.

Firefox introduced support for the onload event on <link> elements in version 9 (released 12/20). Currently, YUI automatically fires the onSuccess callback if it's Moz or Webkit; however, there isn't a check (for Moz or Webkit) when the onload listener is attached to the newly created <link> element. This causes the onSuccess callback to be fired twice in Firefox 9.

Moz' support for onload event is here: https://bugzilla.mozilla.org/show_bug.cgi?id=185236