WordPress.org

Forums

MP6
[resolved] svg-painter.js _ is not defined (2 posts)

  1. OMGCarlos
    Member
    Posted 2 years ago #

    In a custom framework I wrote, any JS call to tb_show throws an error when MP6 is enabled:
    Uncaught ReferenceError: _ is not defined

    Specifically on line 50 in svg-painter.js

    I added the following line to mp6.php on line 160 to fix the problem:
    wp_enqueue_script( 'underscore' );

    I would normally just include it myself in functions.php etc, but since svg-painter.js uses underscore, I figured it should really be added there. Just posting this if anyone notices the media uploader not working as expected.

    http://wordpress.org/plugins/mp6/

  2. Till Krüss
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks, I changed the _.map into a for in 761937.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MP6
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic