Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This is a pure guess since I do not even know what the kendo thing is, but I believe your problems stem from these issues:</p> <pre><code>//This require statement is not correct. require(["jquery", "k/kendo.dropdown.min"], function(){...}) </code></pre> <p>Your not binding jQuery to any variables so if you later try to use it it does not exists. You likely want something like this.</p> <pre><code>require(["jquery", "k/kendo.dropdown.min"], function($){ </code></pre> <p>Another problem is that the kendo plugin likely assumes global jQuery. That means you have to ensure the plugin properly declares and binds its dependencies local variables. The plugin code should be wrapped into something like this:</p> <pre><code>define([ 'jquery', ], function (jQuery) { //In case it also depends on the $ then set it up here too: var $ = jQuery; /* The actual kendo plugin stuff...*/ } ); </code></pre> <p>This is because calling noConflict means the global $ and jQuery variables get unbound. There for you have to explicitly specify the local variables you want to bind to jQuery or it wont work. Most plugins expect the jQuery variable to defined, but it could assume $ as well.</p> <p>P.S. Even if the plugin is AMD enabled and has a define clause in it, it is possible that the plugin needs some modifications to work with private jQuery. It seems some plugins do not use the local variables to which the dependencies are bound to and passed down to the plugins on the define declaration. Instead they use whatever it is that is or isn't publicly defined (e.g. backbone). So they are using the define clause just as a way of stating what are the dependencies and to make sure requriejs loads some form of jQuery, but they don't actually bother using them. This, however, is not the the case with jQuery.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload