Permalink
Browse files

forEach has an optional thisArg parameter

  • Loading branch information...
jcompagner committed Jan 28, 2013
1 parent 249e442 commit 9772c29aa54119aafa4d49f6289d2e521d113284
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugins/org.eclipse.dltk.javascript.core/resources/native-references.xml
@@ -204,8 +204,9 @@
<itemType xsi:type="ref:TypeVariableReference" variable="@ROOT/Array/E"/>
</type>
</members>
- <members xsi:type="ref:Method" name="forEach" description="Calls a function for each element in the array.">
+ <members xsi:type="ref:Method" name="forEach" description="Calls a function for each element in the array. Optionally with a thisObject argument to use as this when executing callback.">
<parameters name="callback" directType="Function"/>
+ <parameters name="thisArg" kind="OPTIONAL"/>
</members>
<members xsi:type="ref:Method" name="indexOf" directType="Number" description="Returns the first index at which a given element can be found in the array, or -1 if it is not present.">
<parameters name="searchElement"/>

0 comments on commit 9772c29

Please sign in to comment.