Class TKUtils

Object
   |
   +--TKUtils

class 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

TKUtils()

Method Detail

buildElement

<static> Object buildElement(elementData)

copyPropertiesFromSourceToTarget

<static> void copyPropertiesFromSourceToTarget(source, target)

createDisplayName

<static> Object createDisplayName(className, methodName)

createEvent

<static> Object createEvent(eventType, relatedTarget)

isNodeChildOfOtherNode

<static> Object isNodeChildOfOtherNode(childNode, allegedParentNode)

objectHasMethod

<static> bool objectHasMethod(<Object> object, <String> methodNameAsString)

objectIsArray

<static> bool objectIsArray(<Object> object)

objectIsFunction

<static> bool objectIsFunction(<Object> object)

objectIsString

<static> bool objectIsString(<Object> object)

objectIsUndefined

<static> bool objectIsUndefined(<Object> object)

px

<static> String px(<number> value)

setupDisplayNames

<static> void setupDisplayNames(object, <String> className)

t

<static> String t(<int> tx, <int> ty)


Documentation generated by JSDoc on Tue Sep 15 21:24:36 2009