Possible Duplicate:
What does $$ mean in Javascript?
I just saw this piece of code.
var buttons = $$('.add-select-row');
What does that do? Is that Prototype?
Possible Duplicate:
What does $$ mean in Javascript?
I just saw this piece of code.
var buttons = $$('.add-select-row');
What does that do? Is that Prototype?
Yes it's prototype, and one of the first things in the manual:
$$
is a variable holding a function (variable names starting with $
are valid in JS).
A few frameworks uses $$
as a shortcut to select multiple elements using a CSS Selector
maybe $$ is a no conflict variable of jquery, somewhere in your code you have:
var $$ = jQuery.noConflict();
It depends on what libraries are in use on that page. jQuery normally uses $, but so do some other libraries, so common practice is to manually tell the library to use something else instead if you have more than one in use that would otherwise conflict.
This looks like jQuery has been told to use $$ via jQuery.noConflict(), which may mean that $ is in use by Prototype.
Technically, it does whatever you want it to.
For example, it could be jQuery..
(function($$) {
// code
})(jQuery);
e: Out of context, there is no definitive answer. You can't for sure say its prototype just because prototype uses dollar-dollar.