Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'split' of undefined #17

Open
shelterless opened this issue May 31, 2017 · 2 comments
Open

Cannot read property 'split' of undefined #17

shelterless opened this issue May 31, 2017 · 2 comments

Comments

@shelterless
Copy link

i use jquery-3.1.1 and jquery-ui-1.12.1
i get this error :

VM1567:1832 Uncaught TypeError: Cannot read property 'split' of undefined

in this line (1392):

sC.selector = $N.selector.split(".slice")[0];

@allpro
Copy link
Owner

allpro commented May 31, 2017

jQuery 3 dropped the 'selector' property on objects. Just comment out that line of code in your copy of Layout. That property was copied to state.container only to provide extra information; it has no effect on functionally.

@PatMartin
Copy link

If you're like me, and use this plugin from a CDN and don't want to host it yourself, just monkey patch it:

(function ($){
$.fn.selector = { split: function() { return ""; }};
})(jQuery);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants