diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/api/classes/SynthRegistry.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/api/classes/SynthRegistry.html Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,2024 @@ + + + + + SynthRegistry - YUI 3 + + + + + + + + +
+
+
+ +

+ +
+
+ API Docs for: 3.10.3 +
+
+
+ +
+ +
+
+
+ Show: + + + + + + + +
+ + +
+
+
+

SynthRegistry Class

+
+ + + + + +
+ Defined in: event/js/synthetic.js:105 +
+ + + + + Module: event-synthetic
+ Parent Module: event + + + + +
+ + + +
+

Manager object for synthetic event subscriptions to aggregate multiple synths on the +same node without colliding with actual DOM subscription entries in the global map of +DOM subscriptions. Also facilitates proper cleanup on page unload.

+
+ + +
+

Constructor

+
+

SynthRegistry

+ + +
+ (
    + +
  • + + el + +
  • + +
  • + + yuid + +
  • + +
  • + + key + +
  • + +
) +
+ + + + + + + + private + + + + + + + + + + +
+ + + +

+ + Defined in + + + + + event/js/synthetic.js:105 + +

+ + + + + +
+ +
+ +
+ + +
+

Parameters:

+ +
    + +
  • + + el + HTMLElement + + + + +
    +

    the DOM element

    +
    + + +
  • + +
  • + + yuid + String + + + + +
    +

    the yuid stamp for the element

    +
    + + +
  • + +
  • + + key + String + + + + +
    +

    the generated id token used to identify an event type + + element in the global DOM subscription map.

    +
    + + +
  • + +
+
+ + + + + +
+ +
+ + +
+ + +
+
+

Item Index

+ + +
+

Methods

+ + +
+ + + + + + + +
+ + +
+

Methods

+ + +
+

_unregisterSub

+ + +
+ (
    + +
  • + + sub + +
  • + +
) +
+ + + + + + + + + + + + + + + + +
+ + + +

+ + Defined in + + + + + event/js/synthetic.js:146 + +

+ + + + + +

Available since 3.4.0

+ +
+ +
+

Removes the subscription from the Notifier registry.

+
+ + +
+

Parameters:

+ +
    + +
  • + + sub + Subscription + + + + +
    +

    the subscription

    +
    + + +
  • + +
+
+ + + + + +
+ + +
+

detachAll

+ + + () + + + + + + + + private + + + + + + + + + + +
+ + + +

+ + Defined in + + + + + event/js/synthetic.js:174 + +

+ + + + + +

Available since 3.4.0

+ +
+ +
+

Used by the event system's unload cleanup process. When navigating +away from the page, the event system iterates the global map of element +subscriptions and detaches everything using detachAll(). Normally, +the map is populated with custom events, so this object needs to +at least support the detachAll method to duck type its way to +cleanliness.

+
+ + + + + + +
+ + +
+

register

+ + +
+ (
    + +
  • + + handle + +
  • + +
) +
+ + + + + + + + + + + + + + + + +
+ + + +

+ + Defined in + + + + + event/js/synthetic.js:134 + +

+ + + + + +

Available since 3.4.0

+ +
+ +
+

Adds a subscription from the Notifier registry.

+
+ + +
+

Parameters:

+ +
    + +
  • + + handle + EventHandle + + + + +
    +

    the subscription

    +
    + + +
  • + +
+
+ + + + + +
+ + +
+ + + + + + + +
+
+ +
+
+
+
+
+
+ + + + + + + + + +