I would like to make a suggestion/observation about the use of the JQuery library in the Telerik controls. First of all, let me say that I am extremely appreciative of your use of it - I love JQuery and think it makes my development life easier.
That being said, I noticed that, in Telerik's implementation of JQuery, you have the following lines at the end of your jQuery library:
What I wonder is, why are you passing true to noConflict? In the JQuery docs, it says this:
If necessary, we can free up the
This is indeed the problem I am seeing when trying to use jQuery plugins with my installation. I am having to modify every single plugin, so instead of it passing the jQuery object to the plugin, it passes $telerik.$. I don't see the need to "hide" the jQuery object in this way. Why can't we have access to the jQuery object just as it should be, through jQuery and through $? Currently, to make my coding shorter, I am calling this line after the telerik scripts are loaded:
This is just so I can use typical jQuery shorthand, like $(document).ready(). What was the need for obscuring the JQuery object in $telerik.$? Wouldn't it be better to keep it the way it was intended, and allow the developers using your framework to decide whether to call noConflict if they are using other frameworks in addition to yours?
Thanks,
Gene
That being said, I noticed that, in Telerik's implementation of JQuery, you have the following lines at the end of your jQuery library:
// Move jQuery to $telerik |
$telerik.$ = jQuery.noConflict(true); |
What I wonder is, why are you passing true to noConflict? In the JQuery docs, it says this:
If necessary, we can free up the
jQuery
name as well by
passing true
as an argument to the method. This is rarely
necessary, and if we must do this (for example, if we need to use
multiple versions of the jQuery
library on the same page),
we need to consider that most plug-ins rely on the presence of the
jQuery variable and may not operate correctly in this situation.This is indeed the problem I am seeing when trying to use jQuery plugins with my installation. I am having to modify every single plugin, so instead of it passing the jQuery object to the plugin, it passes $telerik.$. I don't see the need to "hide" the jQuery object in this way. Why can't we have access to the jQuery object just as it should be, through jQuery and through $? Currently, to make my coding shorter, I am calling this line after the telerik scripts are loaded:
window.$ = $telerik.$; |
This is just so I can use typical jQuery shorthand, like $(document).ready(). What was the need for obscuring the JQuery object in $telerik.$? Wouldn't it be better to keep it the way it was intended, and allow the developers using your framework to decide whether to call noConflict if they are using other frameworks in addition to yours?
Thanks,
Gene