Yup. Typos:
var areAnyBigEnough = ({a: 10, b: 4, c: 25, d: 100}).some(function(value, key){
return value > 20;
}); //isAnyBigEnough = true
should be:
var areAnyBigEnough = new Hash({a: 10, b: 4, c: 25, d:
100}).some(function(value, key){
return value > 20;
}); //areAnyBigEnough = true
On 2010-09-12, at 14:05, hamburger wrote:
> thx Fábio,
> i'am a newbe and not sure thats an issue or not.
> another issue? in: http://mootools.net/docs/core/Native/Hash#Hash:some
>
> var areAnyBigEnough = ({a: 10, b: 4, c: 25, d:
> 100}).some(function(value, key){
> return value > 20;
> });
>
> gives:
> {a: 10, b: 4, c: 25, d: 100}.some is not a function
>
> On 11 Sep., 16:42, Fábio M. Costa <[email protected]> wrote:
>> Ok, you should create a ticket for this inconsistency.
>> As i'm a good boy i created it for you :D
>>
>> https://mootools.lighthouseapp.com/projects/24057-mootoolsmore/ticket...
>>
>> Thanks!
>>
>> --
>> Fábio Miranda Costa
>> front...@globocore
>> *github:* fabiomcosta
>> *twitter:* @fabiomiranda
>> *ramal:* 6410
>>
>> On Sat, Sep 11, 2010 at 9:27 AM, hamburger <[email protected]> wrote:
>>> if the native .lenght do not work here can somebody correct the docs:
>>
>>> http://mootools.net/docs/more/Utilities/Hash.Cookie#Hash-Cookie:load
>>
>>> On 9 Sep., 17:10, Paul Saukas <[email protected]> wrote:
>>>> First never use alert on a periodical it is annoying as hell [?]
>>
>>>> Next it is .getLength() not .length
>>
>>>> http://jsfiddle.net/puZmW/2/
>>
>>>> On Thu, Sep 9, 2010 at 10:29 AM, hamburger <[email protected]> wrote:
>>>>> hello,
>>>>> i have a problem to understand new Hash.Cookie.
>>>>> why in the following example is the cookie.length undefined.
>>>>> this example is from moodocs and seems not to be correct.
>>
>>>>> http://jsfiddle.net/puZmW/1/
>>
>>>> 360.gif
>>>> < 1 KBAnzeigenHerunterladen