// Indicate when other scripts use $ with out wrapping their code.
if($===undefined){
$=function(){
alert('Please wrap your JavaScript code in (function($) { ... })(jQuery); to be compatible. See http://docs.jquery.com/Using_jQuery_with_Other_Libraries.');
$=function(){
alert('Please wrap your JavaScript code in (function($) { ... })(jQuery); to be compatible. See http://docs.jquery.com/Using_jQuery_with_Other_Libraries.');
};
}
(function($){
(function($){
/**
* Attach all registered behaviors to a page element.
...
...
@@ -23,10 +23,10 @@ if ($ === undefined) {
* object using the method 'attach' and optionally also 'detach' as follows:
* @code
* Drupal.behaviors.behaviorName = {
* attach: function(context) {
* attach: function(context) {
* ...
* },
* detach: function(context) {
* detach: function(context) {
* ...
* }
* };
...
...
@@ -50,11 +50,11 @@ if ($ === undefined) {
* An object containing settings for the current context. If none given, the