Martin Carlberg and GitHub
86d595b086
Fixed: Make the isa property on classes not enumerable. ( #3100 )
...
As we have a tool-free bridges between many classes and JavaScript types by setting the isa property on the type, for example CPArray and Array. Using the for...in enumeration the isa property will be included in the loop if the property is enumerable (this is the default behavior). This commit set the property as not enumerable.
Also added test case for check that the isa property on classes are not enumerable using a for...in loop.
2025-05-14 10:09:01 +02:00
Martin Carlberg and GitHub
7dc77ed609
Fixed: Make sure we handle undefined when testing for nil values ( #2862 )
2020-01-31 13:43:58 +01:00
cacaodev
1b72646772
Style: remove tabs
2016-01-17 20:54:20 +01:00
cacaodev
08aa591c65
NEW CPArray -arrayByApplyingBlock:(Function/*element, index*/)aBlock
...
Test for CPArray -arrayByApplyingBlock:
2016-01-14 21:57:57 +01:00
Martin Carlberg
8599ad4a3c
Fixed: The init method ’initWithObjects:count:’ for CPArray did not work on native CPJavaScriptArray when ’count’ is not the same as the length on the provided array.
...
A test case for this is also added in the test class CPArrayTest
2015-09-25 17:07:15 +02:00
Alexandre Wilhelm
34f724a4a4
Fixed: capp_lint fixes
2015-04-22 11:22:44 -07:00
Martin Carlberg
0efb7e67c9
Fixed: Use new fast msgSend function for some foundation classes
2014-04-10 11:03:49 +02:00
Martin Carlberg
bb58a206a8
Fixed: Removed all warnings of conflicting return and parameter types caused by the new compiler
2013-08-12 16:46:14 +02:00
Aparajita Fishman
391ff7279d
Fixed: capp_lint errors.
2013-05-16 15:02:45 -04:00
Alexander Ljungberg
6d1c4a9570
Fixed: - CPMutableArray removeObjectIdenticalTo did not remove all instances, was documented incorrectly.
...
Contrary to what the previous documentation said, removeObjectIdenticalTo: should remove all instances of the argument from the receiver, not just the first one.
2013-02-24 23:51:48 +00:00
Alexander Ljungberg
be4a168601
Make 30268f9865c compatible with Internet Explorer 8-.
2013-02-24 23:50:09 +00:00
Alexander Ljungberg
0268f9865c
Faster CPMutableArray removeObjectIdenticalTo:.
...
About 6-8X speedup by skipping all the `indexOfObjectIdenticalTo:` calls and going straight to JS `indexOf`.
2013-02-24 15:19:00 +00:00
cacaodev
04026c054b
_CPJavaScriptArray -objectsAtIndexes: implementation.
...
Added speed test in CPArrayPerformanceTest (6x faster).
2013-02-04 17:26:18 +01:00
Blair Duncan
6ede1ccb04
Unnecessary globals
2012-04-10 17:25:46 -04:00
Alexander Ljungberg
7f31be7cb1
Fixed: array replaceObjectsInRange:withObjectsFromArray: always failed with a "'null' is not an object' error.
...
This was caused by the new range checks in f8404c7a97 .
2011-09-07 16:18:08 +01:00
Aparajita Fishman
8e203ec78e
Fixed range checking for insertObject:atIndex:
2011-08-08 15:14:30 -07:00
Aparajita Fishman
f8404c7a97
Added some missing range checking.
2011-08-05 14:40:13 -07:00
Francisco Ryan Tolmasky I
00915083d4
Quick fix for initWithCapacity: not working on CPMutableArray.
...
Reviewed by me.
2011-01-18 13:25:43 -08:00
Francisco Ryan Tolmasky I
5fd470acea
Fix for adding a js object to a CPArray and associated tests.
...
Reviewed by me.
2011-01-12 08:41:02 -08:00
Francisco Ryan Tolmasky I
1f5ad49591
CPMutableArray fixes and tests.
...
Reviewed by me.
2011-01-11 15:27:35 -08:00
Francisco Ryan Tolmasky I
3e45c7895c
More tests and bug fixes for CPArray family.
...
Reviewed by me.
2011-01-11 12:08:00 -08:00
Francisco Ryan Tolmasky I
29301f440e
Fixed a few bugs in CPArray and added many new tests for CPArray.
...
Reviewed by me.
2011-01-11 10:12:26 -08:00
Francisco Ryan Tolmasky I
2f86c0d9d2
Slight initWithArray:shouldCopyItems: fix.
...
Reviewed by me.
2011-01-10 09:21:46 -08:00
Francisco Ryan Tolmasky I
5af66b60e1
Better -copy implementations for KVC arrays and sets.
...
Reviewed by me.
2011-01-09 03:46:29 -08:00
Francisco Ryan Tolmasky I
aa60a7b975
Use stubbed out Array methods instead of relying on them existing on the object.
...
Reviewed by me.
2011-01-06 10:28:24 -08:00
Randall Luecke
a000687a42
Fix for CPArray and _CPJavaScriptArray -copy
2011-01-04 22:59:33 -06:00
Francisco Ryan Tolmasky I
e45ed19dc7
Fix remaining failing tests and add indexOfObject:inSortedRange:options:usingComparator:, and removed non-standard methods:
...
- indexOfObject:sortedBySelector:
- indexOfObject:sortedByFunction:
- indexOfObject:sortedByDescriptors:
- indexOfObject:sortedByFunction:context:
Reviewed by me.
2010-12-25 21:10:32 -08:00
Francisco Ryan Tolmasky I
f79c2346a5
More test fixes.
...
Reviewed by me.
2010-12-25 17:05:31 -08:00
Francisco Ryan Tolmasky I
37931f08b5
First pass at CPArray class cluster.
...
Reviewed by me.
2010-12-25 16:07:30 -08:00