|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--TKUtils
Defined in Utils.js
| Constructor Summary | |
TKUtils()
Copyright © 2009 Apple Inc. |
|
| Method Summary | |
<static> Object
|
buildElement(elementData)
|
<static> void
|
copyPropertiesFromSourceToTarget(source, target)
Copies all properties from one object onto another. |
<static> Object
|
createDisplayName(className, methodName)
|
<static> Object
|
createEvent(eventType, relatedTarget)
|
<static> Object
|
isNodeChildOfOtherNode(childNode, allegedParentNode)
|
<static> bool
|
objectHasMethod(<Object> object, <String> methodNameAsString)
Indicates whether an object implements a given method, useful to check if a delegate object implements a given delegate method. |
<static> bool
|
objectIsArray(<Object> object)
Indicates whether an object is an Array.
|
<static> bool
|
objectIsFunction(<Object> object)
Indicates whether an object is a Function.
|
<static> bool
|
objectIsString(<Object> object)
Indicates whether an object is a string literal or a String instance.
|
<static> bool
|
objectIsUndefined(<Object> object)
Indicates whether an object is undefined.
|
<static> String
|
px(<number> value)
Creates a CSS string representation for a number in pixels. |
<static> void
|
setupDisplayNames(object, <String> className)
Sets up the .displayNames for all functions defined on the specified class, including its prototype. |
<static> String
|
t(<int> tx, <int> ty)
Prints a translate3d() command that can be used as input for a -webkit-transform property.
|
| Constructor Detail |
TKUtils()
| Method Detail |
<static> Object buildElement(elementData)
<static> void copyPropertiesFromSourceToTarget(source, target)
sourceObject - The object from which we will copy properties.
targetObject - The array onto which we will copy properties.
<static> Object createDisplayName(className, methodName)
<static> Object createEvent(eventType, relatedTarget)
<static> Object isNodeChildOfOtherNode(childNode, allegedParentNode)
<static> bool objectHasMethod(<Object> object, <String> methodNameAsString)
object - The object purported to implement a given method.
methodNameAsString - The method name as a String.
<static> bool objectIsArray(<Object> object)
Array.object - The object purported to be an Array.
Array.
<static> bool objectIsFunction(<Object> object)
Function.object - The object purported to be a Function.
Function.
<static> bool objectIsString(<Object> object)
String instance.object - The object purported to be a string literal or a String instance.
String instance.
<static> bool objectIsUndefined(<Object> object)
undefined.object - The object purported to be undefined.
undefined.
<static> String px(<number> value)
value - The value to be converted.
value in pixels.
<static> void setupDisplayNames(object, <String> className)
className - The class name as a string, in case it can not be derived from class. Optional.
class - The class.
<static> String t(<int> tx, <int> ty)
translate3d() command that can be used as input for a -webkit-transform property.tx - The x coordinate for the translation.
ty - The y coordinate for the translation
translate3d() command
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||