milohuang / reverie

Reverie is a versatile HTML5 responsive WordPress framework based on ZURB's Foundation.
http://theakiba.com/reverie/
MIT License
916 stars 196 forks source link

Activates noConflict mode for jQuery, and enqueues jQuery's Migrate plug... #168

Closed dalexisv83 closed 11 years ago

dalexisv83 commented 11 years ago

...in for backwards compatibility. Instantiates foundation.js to comply with jQuery noConflict mode.

According to http://eamann.com/tech/dont-dequeue-wordpress-jquery/

"jQuery is loaded in “no conflict” mode to prevent any potential script collisions over the $ variable in the global namespace. As of version 3.6, WordPress will be shipping with version 1.9 of jQuery – which removes several deprecated APIs like .live(). To prevent things from breaking, WordPress automatically loads jQuery Migrate, a plugin that adds these removed APIs back to the system, but alerts you in the browser console of their deprecation."

Activating noConflict mode immediately after jQuery is enqueued and then adding the Migrate plugin should solve #117, right?

Working for me with no console errors so far.