2 messages in com.googlegroups.google-mashup-editorRe: compiler error "--" fails on work...
FromSent OnAttachments
bruc...@gmail.com12 Aug 2007 19:39 
Jason13 Aug 2007 10:32 
Subject:Re: compiler error "--" fails on working code
From:Jason (gmej@google.com)
Date:08/13/2007 10:32:42 AM
List:com.googlegroups.google-mashup-editor

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