Title: Customizing JS output
Last modified: August 31, 2016

---

# Customizing JS output

 *  Resolved [WP CMS Ninja](https://wordpress.org/support/users/billiardgreg/)
 * (@billiardgreg)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/customizing-js-output/)
 * So I am finding that I need to be able to add some javascript code to the $RMjQuery
   calls. I wanted to be able to add a on scroll close menu feature. So around the
   Menu Resize function implementation around line 462 in JSModel.php I added the
   following code:
 *     ```
       \$RMjQuery( window ).scroll(function() {
       				if (isOpen) closeRM();
       				isOpen = false;
       			});
       ```
   
 * But I was wondering if there was a way to do this without modifying the core 
   files of your addon.
 * [https://wordpress.org/plugins/responsive-menu/](https://wordpress.org/plugins/responsive-menu/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [responsivemenu](https://wordpress.org/support/users/responsivemenu/)
 * (@responsivemenu)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/customizing-js-output/#post-6921748)
 * Hi there,
 * Apologies I have been away on holiday for a while but am back now.
 * Unfortunately it’s not possible to edit the JavaScript file any other way apart
   from through the core code as there is too much logic involved.
 * If I ever find a way to make it possible or a way to make it extendable I will
   surely update accordingly.
 * All the best

Viewing 1 replies (of 1 total)

The topic ‘Customizing JS output’ is closed to new replies.

 * ![](https://ps.w.org/responsive-menu/assets/icon-256x256.png?rev=1782326)
 * [Responsive Menu - Create Mobile-Friendly Menu](https://wordpress.org/plugins/responsive-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-menu/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [responsivemenu](https://wordpress.org/support/users/responsivemenu/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/customizing-js-output/#post-6921748)
 * Status: resolved