Hi Bruce. This is a known bug that should be addressed in the next
release. In the meantime, try using i-=1 instead.
Happy mashing!
- Jason
On Aug 12, 7:40 pm, "bruc...@gmail.com" <bruc...@gmail.com>
wrote:
The compiler flags "--" as an error even when it is a legitimate part
of javascript code. In my case the code involves shuffling an array
for a multiple choice test.
//Array.shuffle( deep ) - Randomly interchange elements by 4umi.com
Array.prototype.shuffle = function( b ) {
var i = this.length, j, t; while(i) {//while(i-) {
j = Math.floor( ( i-- ) * Math.random() );
t = b && typeof this[i].shuffle!=='undefined' ? this[i].shuffle() :
this[i];
this[i] = this[j];
this[j] = t;
}
return this;
};
Is there some way to turn of compiler test for "--" after the code is
clean so that the process can be run in a mashup?
Thanks in advance for any clues
Bruce