mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-27 05:57:04 +00:00
Make 30268f9865c compatible with Internet Explorer 8-.
This commit is contained in:
@@ -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