Revision Summary Date Revision History Revision Class Comments 3/26/2010 1.0 New Released new document. 5/26/2010 1.2 None Introduced no new technical or language changes. 9/8/2010 1.3 Major Significantly changed the technical content. 2/10/2011 2.0 Minor Clarified the meaning of the technical content. 2/28/2011 2.1 Major Significantly changed the technical content. 2/15/2012 2.2 Minor Clarified the meaning of the technical content. 7/25/2012 3.0 Minor Clarified the meaning of the technical content. 6/26/2013 4.0 Significantly changed the technical content. 8/8/2013 4.1 Minor Clarified the meaning of the technical content. 7/7/2015 4.3 Clarified the meaning of the technical content.
Return. V0076: The production FunctionBinding : EventHandlerBinding is processed during variable instantiation as follows when passed a function object func and the attributes attrs as arguments: Let objRef be the result of evaluating the ObjectPath element of MethodBinding. Call GetValue(Result(1)). Call ToObject(Result(2)). If Result(3) is not a host object that supports event attachment return. Let eventName be a string containing the text of the Identifier element of EventHandlerBinding. Perform the host specific action that will associate func as an event handler on Result(3) for the event named eventName. This action may throw exceptions. Return. If the host is Internet Explorer, step 6 above is equivalent to invoking the attachEvent method of Result(3) passing eventName and func as the arguments. The production ObjectPath : Identifier is evaluated identically to the manner that the production PrimaryExpression : Identifier would be evaluated for the same Identifier (see [ECMA-262-1999] section10.1.4). The production ObjectPath : ObjectPath NameQualifier Identifier is evaluated as follows: Evaluate ObjectPath. Call GetValue(Result(1)). Call ToObject(Result(2)). Return a value of type Reference that has a base object of Result(3) and a property name of Identifier. [ECMA-262-1999] Section 13.2, Creating Function Objects Given an optional parameter list specified by FormalParameterList, a body specified by FunctionBody, and a scope chain specified by Scope, a Function object is constructed as follows: If there already exists an object E that was created by an earlier call to this section's algorithm, and if that call to this section's algorithm was given a FunctionBody that is equated to the FunctionBody given now, then go to step 13. (If there is more than one object E satisfying these criteria, choose one at the implementation's discretion.) Create a new native ECMAScript object and let F be that object. Set the property of F to "Function".
Index [ 47 [[Put]] (P - V) ( 17, 69) A 121 23 24 55 56 57 58 59 61 62 63 65 54 68 106 106 B 34 C 124 107 107 108 12 46 D 83 121 100 101 99 96 98 100 97 100 102 99 96 98 101 97 122 94 95 94 95 92 94 92 82 104 E 23 111 112 112 115 24 48 118 F 24 41 123 82 53 53 52 119 12 G 18 23 7 I 7 Internal Properties and Methods ( 17, 123) 7 L 70 11 116 12 82 N 47 115 114 115 54 111 115 49 108 108 7 103 79
77 77 80 76 77 O 49 26 50 51 51 51 50 50 P parseInt (string - radix) ( 48, 123) 103 102 113 92 112 76 50 109 71 27 54 Q 106 R 113 References 7 7 109 111 Regular Expression Literals ( 15, 122) 120 S 11 Statements ( 33, 118) String Literals ( 13, 120) 71 71 72 72 72 73 73 73 73 121 75 76 71 113 T 104 31 30 28 27 34 36 47 29 30 17 18 33 38 40 28 82 19 20 21 19 20 124 114 17 U 11 V 22