Deprecated functions/Dollar safe mode #11

Merged
merged 2 commits into from Mar 27, 2012
View
16 Source/wall.js
@@ -95,8 +95,8 @@ var Wall = new Class({
this.setOptions(options);
this.__target = id;
// Imposta wall e Viewport
- this.wall = $(this.__target);
- this.viewport = $(this.__target).getParent();
+ this.wall = document.id(this.__target);
+ this.viewport = document.id(this.__target).getParent();
},
/**
@@ -142,17 +142,17 @@ var Wall = new Class({
}
// Definisce Handler
- var handler = this.options.handle != undefined ? $(this.options.handle) : $(this.__target);
+ var handler = this.options.handle != undefined ? document.id(this.options.handle) : document.id(this.__target);
// Click sul Wall
- $(this.__target).addEvent("click", function(e){
+ document.id(this.__target).addEvent("click", function(e){
e.stopPropagation();
// Reset Movement
this.moved = 0;
}.bind( this ))
// Definisce oggetto draggabile
if( this.options.draggable == true ){
- this.wallDrag = $(this.__target).makeDraggable({
+ this.wallDrag = document.id(this.__target).makeDraggable({
handle:handler,
limit: {
x: [this.minx, this.maxx],
@@ -610,7 +610,7 @@ var Wall = new Class({
getListLinksPoints: function( id_target ){
var items = [];
// Crea Hyperlink per ogni elemento del Wall
- $each(this.coordinates, function(e,i){
+ Array.each(this.coordinates, function(e,i){
var a = new Element("a.wall-item-coda[html="+(1+i)+"][href=#"+(1+i)+"]");
a.addEvent("click", function(evt){
// Disabilita slideshow
@@ -621,7 +621,7 @@ var Wall = new Class({
this.moveTo(e.c, e.r);
}.bind( this ))
// Inserisce nel target
- a.inject($(id_target));
+ a.inject(document.id(id_target));
// Aggiunge ad array elementi
items.push(a);
}.bind( this ))
@@ -646,7 +646,7 @@ var Wall = new Class({
// Attivazione
if( this.coda_target ){
// Rimuove link attivi
- $each(this.coda_items, function(e,i){ e.removeClass("wall-item-current"); })
+ Array.each(this.coda_items, function(e,i){ e.removeClass("wall-item-current"); })
// Attiva corrente
this.coda_items[i].addClass("wall-item-current");
return this.coda_items[i];