[wp-trac] [WordPress Trac] #30236: Trigger widget-added event in Customizer when initializing
WordPress Trac
noreply at wordpress.org
Mon Nov 3 22:35:39 UTC 2014
#30236: Trigger widget-added event in Customizer when initializing
--------------------------+-------------------------
Reporter: westonruter | Owner: ocean90
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.1
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+-------------------------
Comment (by westonruter):
Replying to [comment:2 ocean90]:
> I added […] before the .trigger() line and got this with 4 widgets: […]
Isn't this to be expected? With each widget becoming`ready` a new `widget-
added` event handler gets registered and then gets triggered with that
widget as the param to the event.
To test, don't you mean to place your snippet in the root of the script so
it doesn't get called multiple times?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30236#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list