I’m trying to add some javascript to my theme customizer. My JS file is loaded no problem and my document ready event works but wp.customize.bind()
isn’t calling my callback.
jQuery(document).on('ready', function(){
console.log('binding')
wp.customize.bind('ready', function(){
console.log('ready')
})
})
binding
gets outputed to the console but ready
does not.
What am I missing? there seems to be little to no documentation on using the javascript here.