The product of a web developer with a little too much caffeine

jLinq 2.1.1 Released

with 2 comments

A newer version of jLinq is now available – jLinq 2.2.0

jLinq 2.1.1 has been released.

This version makes a fix to a very annoying IE bug that would cause arrays to be sorted reversed from all other browsers.

You most likely will want to update to this version to avoid any problems using jLinq.


Written by hugoware

May 14, 2009 at 3:02 am

2 Responses

Subscribe to comments with RSS.

  1. Very nice!
    But i don’t get how count and take functions work?!

    i tried like:

    but i get 0 😦
    same for take function, doesnt work either
    what a i doing wrong?



    May 15, 2009 at 1:22 pm

  2. Dave, that’s what’s called an ‘epic fail’ on my behalf…

    On line 1070 the code reads
    return invert ? query.results.remaining.length : query.results.remaining.length;

    which instead it should read
    return invert ? query.results.remaining.length : query.results.selected.length;

    I will post the fix this evening. If you replace that line in your file you should be fixed for now.

    As for the take command, it should be used like this…

    jLinq.from(data).take(5); //5 records (unless there are less matches available)

    There is also another command called skipTake that accepts two parameters which will skip a number of records before it returns the take number

    jLinq.from(data).skipTake(3, 5); // skip the first three, then take 5 records (unless there are less matches available)

    Hope this helps!


    May 15, 2009 at 1:37 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: