layout icon indicating copy to clipboard operation
layout copied to clipboard

Cannot read property 'split' of undefined

Open shelterless opened this issue 8 years ago • 2 comments

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];

shelterless avatar May 31 '17 11:05 shelterless

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.

allpro avatar May 31 '17 16:05 allpro

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);

PatMartin avatar Jul 03 '17 19:07 PatMartin