They are two, and this is just a place where Lint and Prototype  
disagree. This could be written as

if((match = source.match(pattern))) { ...

and Lint would say "Sure! That's just fine! " because that's like  
saying if (true){.... But Prototype house style is about less typing  
(in the keyboard sense of the word) and this assignment-which-returns- 
either-false-or-something-truthy will actually **work** in JavaScript.

Walter

On Jun 3, 2009, at 11:11 AM, Alex McAuley wrote:

>
> sorry i cant read the = signs ... are they 3 equals ( = = =) or 2 (=  
> =) -
> obviously without spaces !!
>
>
> ----- Original Message -----
> From: "terry-5-" <nathaliesteinf...@gmx.net>
> To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com 
> >
> Sent: Wednesday, June 03, 2009 3:23 PM
> Subject: [Proto-Scripty] Re: Revert sortable on return value true?  
> Possible?
>
>
>>
>> Warning: test for equality (==) mistyped as assignment (=)?
>> Source File: http://tltc.la.utexas.edu/rr/js/scriptaculous/prototype.js
>> Line: 1921, Column: 39
>> Source Code:
>>     if (match = source.match(pattern)) {
>>
>> Warning: test for equality (==) mistyped as assignment (=)?
>> Source File: http://tltc.la.utexas.edu/rr/js/scriptaculous/prototype.js
>> Line: 285, Column: 60
>> Source Code:
>>     if (result = !!(iterator || Prototype.K)(value, index))
>>
>> ..... (left some out here)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to