Hello,
is there a moo-all-Browser-Working expression for the IE-invention
"sourceIndex"?

at the moment i'am storeing the index like this:

nav_inner.each(function(el,eq) {el.store('index', eq);});


and do this to retrive:

nav_inner.addEvents({
     click: function(e){
        var pan = $('case');
        var i = this.retrieve('index');

             if (this.sourceIndex) { //works only in ie
                 var whichElement = this.sourceIndex;
console.log("using sI (IE): ",whichElement);};

        pan.set('morph', {unit: '%', duration: 400}).morph({left:
(-100 * i)});

         }
 })

isn't there a more elegant way?

Reply via email to