Skip to content

Commit

Permalink
Don't use the deprecated $each.
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking committed Mar 27, 2012
1 parent 157989e commit 9ce9023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/wall.js
Expand Up @@ -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
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 9ce9023

Please sign in to comment.