mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-08 01:48:04 +00:00
Make 30268f9865c compatible with Internet Explorer 8-.
This commit is contained in:
1 parent
b791289dfe
commit
be4a168601
1 file changed
+9
-4
@@ -248,14 +248,19 @@ var concat = Array.prototype.concat,
|
||||
|
||||
- (void)removeObjectIdenticalTo:(id)anObject
|
||||
{
|
||||
var anIndex = indexOf.call(self, anObject);
|
||||
if (anIndex !== -1)
|
||||
splice.call(self, anIndex, 1);
|
||||
if (indexOf)
|
||||
{
|
||||
var anIndex;
|
||||
if ((anIndex = indexOf.call(self, anObject)) !== -1)
|
||||
splice.call(self, anIndex, 1);
|
||||
}
|
||||
else
|
||||
[super removeObjectIdenticalTo:anObject inRange:CPMakeRange(0, self.length)];
|
||||
}
|
||||
|
||||
- (void)removeObjectIdenticalTo:(id)anObject inRange:(CPRange)aRange
|
||||
{
|
||||
if (!aRange)
|
||||
if (indexOf && !aRange)
|
||||
[self removeObjectIdenticalTo:anObject];
|
||||
|
||||
[super removeObjectIdenticalTo:anObject inRange:aRange];
|
||||
|
||||
Reference in new issue
Block a user