| | 1 | 2006-07-16 Geoffrey Garen <ggaren@apple.com> |
| | 2 | |
| | 3 | Reviewed by Maciej. |
| | 4 | |
| | 5 | - Added names to functions. |
| | 6 | |
| | 7 | - Removed GetPrivate/SetPrivate from callbackFunctions and callbackConstructors. |
| | 8 | The private data idiom is that a JS object stores its native implementation |
| | 9 | as private data. For functions and constructors, the native implementation is nothing |
| | 10 | more than the callback they already store, so supporting private data, too, |
| | 11 | confuses the idiom. If you *really* want, you can still create a custom |
| | 12 | function with private data. |
| | 13 | |
| | 14 | * API/JSCallbackConstructor.cpp: |
| | 15 | * API/JSCallbackConstructor.h: |
| | 16 | * API/JSCallbackFunction.cpp: |
| | 17 | (KJS::JSCallbackFunction::JSCallbackFunction): |
| | 18 | * API/JSCallbackFunction.h: |
| | 19 | * API/JSCallbackObject.cpp: |
| | 20 | (KJS::JSCallbackObject::staticFunctionGetter): |
| | 21 | * API/JSObjectRef.cpp: |
| | 22 | (JSObjectMakeFunction): |
| | 23 | (JSObjectMakeFunctionWithBody): |
| | 24 | (JSObjectGetPrivate): |
| | 25 | (JSObjectSetPrivate): |
| | 26 | * API/JSObjectRef.h: |
| | 27 | * API/minidom.c: |
| | 28 | (main): |
| | 29 | * API/testapi.c: |
| | 30 | (main): |
| | 31 | |