Permalink
Commits on May 2, 2011
  1. Merge pull request #1 from rpflorence/enum.

    [Changed] Enumerations ignore prototype properties
    Hugo Bonacci committed May 2, 2011
Commits on Apr 15, 2011
  1. [Changed] Enumerations ignore prototype properties

    - Enumerating an array with `for in` iterates over
      prototype methods the user may have added  (like
      Array.prototype.indexOf for IE support, etc.)
      Changed all array loops to:
    
    	for (var i = 0, l = foo.length; i < l; i++)
    
    - Same thing when iterating over objects.  Though
      by convention users should not mutate
      Object.prototype, EcmaScript allows it. Changed
      all object iterations to check `hasOwnProperty`.
      Some methods iterate over objects or arrays, in
      such cases, `hasOwnProperty` was used.
    ryanflorence committed Apr 15, 2011
Commits on Sep 28, 2010
Commits on Sep 27, 2010
  1. change to select arrays of jQuery objects into a single container (ap…

    …parently a lot easier than I thought at first)
    hugoware committed Sep 27, 2010
  2. Added license information.

    hugoware committed Sep 27, 2010
Commits on Sep 25, 2010
  1. 1. changed method used so tests would work on IE6

    2. started new test for JSON data (string property names). Shouldn't matter but just in case
    hugoware committed Sep 25, 2010
Commits on Aug 30, 2010
  1. 1. moved if/then comparison to a named function for if commands can b…

    …e repeated or not.
    
    2. converted stray +"" to framework.util.toString()
    3. created util.toString method
    4. created util.skipTake
    5. changed util.select to work with indexes correctly
    6. changed type checking from properties to instanceof where applicable
    7. changed skip, take and skipTake to use util.skipTake instead of util.select
    8. exposed util.skipTake in jlinq.util
    hugoware committed Aug 30, 2010
Commits on Aug 29, 2010
  1. 1. Included tests for 'Is' command

    2. Included tests for 'Field' and 'Command' Memorizing
    hugoware committed Aug 29, 2010
  2. 1. renamed type 'boolean' to just 'bool'

    2. Fixed 'repeat' command work correctly when field names change
    3. created 'orNot' and 'andNot' operators
    hugoware committed Aug 29, 2010
Commits on Aug 27, 2010
  1. 1. replaced a stray call to 'firstOr'

    Hugo Bonacci committed Aug 27, 2010
  2. 1. modified the escape regex expression

    2. changed sorting so that if both values contain a length property, it is used for comparisons
    3. fixed an error with 'at' not using a fallback value
    4. fixed an error with 'removed' not accepting a selection parameter
    Hugo Bonacci committed Aug 27, 2010
  3. 1. created a handful of new tests

    Hugo Bonacci committed Aug 27, 2010
Commits on Aug 23, 2010
  1. 1. Modified source methods to include the new 'modify' and 'query' co…

    …mmands
    
    2. Added tests for greater, greaterEquals, less, lessEquals, between, betweenEquals
    3. Added more sorting tests
    4. Requires all tests to clone records.
    5. Removed a stray 'i' from the tests... damn cat...
    6. Changed the time for the tests to begin for no particular reason at all...
    Hugo Bonacci committed Aug 23, 2010
  2. 1. Modified 'query' to be a standard query starter that can accept a …

    …parameter object which will be used more later.
    
    2. Modified checking for 'cloning' arrays for new queries to work correctly
    3. Changed default 'ignoreCase' state to come from a jLinq parameter
    4. Added a 'trim' function for strings -- whoo!
    5. Fixed a problem with 'each' - had too many field names
    6. Changed 'empty' to trim strings before checking them.
    7. Changed 'skip' to no longer create a new query as a result but instead continue to use the current query.
    8. Changed 'take' to no longer create a new query but instead just return the results as an array
    9. Changed 'skipTake' to no longer create a new query but instead just return the results as an array
    10. removed 'firstOr', 'lastOr' and 'atOr' and instead added optional parameters for 'first', 'last', and 'at' to do the same thing.
    11. Improved 'removed' to allow the same selection parameters as 'select'
    12. Added jLinq property for default 'ignoreCase' state
    13. Modified 'from' to always clone records before a query.
    14. Added new function 'modify' that allows changes to the current records.
    15. Added 'trim' as a public jLinq utility function
    Hugo Bonacci committed Aug 23, 2010
Commits on Aug 16, 2010
  1. Minor updates to testing.

    Hugo Bonacci committed Aug 16, 2010
  2. 1. Added 'clone' functionality for new queries to prevent accidently …

    …modifying a collection
    
    2. Added clone and cloneArray functions
    3. Modified 'invoke' function to find the correct object to use
    4. Removed pointless string combination in 'empty()'
    5. Created property to make queries default to cloning arrays before using them.
    Hugo Bonacci committed Aug 16, 2010
Commits on Aug 14, 2010
  1. Included 'date/time' type

    Fixed 'toArray()' to work with IE
    Hugo Bonacci committed Aug 14, 2010
  2. Added new invoke syntax for fields - ["path.to.method", arg1, arg2, .…

    …..].
    
    
    jlinq.from(data)
        .equals(["util.calculate", 33, 2], 44)
        .select();
    Hugo Bonacci committed Aug 14, 2010
Commits on Aug 11, 2010
  1. Initial commit

    Hugo Bonacci committed Aug 11, 2010