adgsm / multi-level-push-menu

MultiLevelPushMenu jQuery Plugin implementation
http://multi-level-push-menu.dzunic.net
804 stars 212 forks source link

iQuery 3.0.0 not supported? #152

Open ghost opened 8 years ago

ghost commented 8 years ago

Hey guys, I´m updated my jQuery version from 2.x to the new 3.0.0. The problem is, that the multi-level-push-menu plugin is not supported by this version. Has anyone a solution for this problem and can help me?

Thanks in advance

Anubiso commented 8 years ago

The property .context was removed in jquery 3.0.0 as it was deprecated since 1.10 (see https://jquery.com/upgrade-guide/3.0/#breaking-change-deprecated-context-and-selector-properties-removed)

You can change line 20 from: $container = ( $this.context != undefined ) ? $this : $( 'body' ), to $container = $this,

and it will work again.

ghost commented 8 years ago

@Anubiso Thanks for your help, the plugin works great with your short fix.