Add a helper function to the Inspector's Array prototype
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 May 2008 22:28:09 +0000 (22:28 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 May 2008 22:28:09 +0000 (22:28 +0000)
commit8f36c0da621fc666dcf0696cc9ccc072c800255e
treed91448e5f536b18a88ec41c1e4092ed536cf96a1
parent086b7a960348f85a27ff022afdb45ffedab76e6a
Add a helper function to the Inspector's Array prototype
that will remove any identical values/objects from the array.

Reviewed by Kevin McCullough.

* page/inspector/utilities.js:
(Array.prototype.remove): Iterate over the array and strict
compare to the passed in value. If they match, splice that index
out of the array. If onlyFirst is true, return after the first splice.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@33398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/page/inspector/utilities.js