[wp-trac] [WordPress Trac] #38806: Better wp namespace in customize-base.js
WordPress Trac
noreply at wordpress.org
Tue Nov 15 22:33:58 UTC 2016
#38806: Better wp namespace in customize-base.js
--------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version:
Severity: normal | Keywords: needs-patch
Focuses: javascript |
--------------------------+-----------------------------
Currently, `customize-base.js` is using this pattern to pass the `wp`
object as argument:
{{{
window.wp = window.wp || {};
(function( exports, $ ){
...
})( wp, jQuery );
}}}
while the `wp` passed to the IIFE should be `window.wp`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38806>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list