Methods

Same as YAHOO.lang.augmentObject, except it only applies prototype
properties. This is an alias for augmentProto.

Parameters:

r <Function>
the object to receive the augmentation

s <Function>
the object that supplies the properties to augment

arguments <String*|boolean>
zero or more properties methods to
augment the receiver with. If none specified, everything
in the supplier will be used unless it would
overwrite an existing property in the receiver. if true
is specified as the third parameter, all properties will
be applied and will overwrite an existing property in
the receiver

Applies all properties in the supplier to the receiver if the
receiver does not have these properties yet. Optionally, one or
more methods/properties can be specified (as additional
parameters). This option will overwrite the property if receiver
has it already. If true is passed as the third parameter, all
properties will be applied and _will_ overwrite properties in
the receiver.

Parameters:

r <Function>
the object to receive the augmentation

s <Function>
the object that supplies the properties to augment

arguments <String*|boolean>
zero or more properties methods
to augment the receiver with. If none specified, everything
in the supplier will be used unless it would
overwrite an existing property in the receiver. If true
is specified as the third parameter, all properties will
be applied and will overwrite an existing property in
the receiver

Same as YAHOO.lang.augmentObject, except it only applies prototype properties

Parameters:

r <Function>
the object to receive the augmentation

s <Function>
the object that supplies the properties to augment

arguments <String*|boolean>
zero or more properties methods
to augment the receiver with. If none specified, everything
in the supplier will be used unless it would overwrite an existing
property in the receiver. if true is specified as the third
parameter, all properties will be applied and will overwrite an
existing property in the receiver

Determines whether or not the property was added
to the object instance. Returns false if the property is not present
in the object, or was inherited from the prototype.
This abstraction is provided to enable hasOwnProperty for Safari 1.3.x.
There is a discrepancy between YAHOO.lang.hasOwnProperty and
Object.prototype.hasOwnProperty when the property is a primitive added to
both the instance AND prototype with the same value:

Determines whether or not the provided object is an array.
Testing typeof/instanceof/constructor of arrays across frame
boundaries isn't possible in Safari unless you have a reference
to the other frame to test against its Array prototype. To
handle this case, we test well-known array properties instead.
properties.

Executes the supplied function in the scope of the supplied
object 'when' milliseconds later. Executes the function a
single time unless periodic is set to true.

Parameters:

when <int>
the number of milliseconds to wait until the fn
is executed

o <object>
the scope object

fn <Function|String>
the function to execute or the name of
the method in the 'o' object to execute

data <object>
[Array] data that is provided to the function. This accepts
either a single item or an array. If an array is provided, the
function is executed with one parameter for each array item. If
you need to pass a single array parameter, it needs to be wrapped in
an array [myarray]

Does variable substitution on a string. It scans through the string
looking for expressions enclosed in { } braces. If an expression
is found, it is used a key on the object. If there is a space in
the key, the first word is used for the key and the rest is provided
to an optional function to be used to programatically determine the
value (the extra information might be used for this decision). If
the value for the key in the object, or what is returned from the
function has a string value, number value, or object value, it is
substituted for the bracket expression and it repeats. If this
value is an object, it uses the Object's toString() if this has
been overridden, otherwise it does a shallow dump of the key/value
pairs.

Parameters:

s <String>
The string that will be modified.

o <Object>
An object containing the replacement values

f <Function>
An optional function that can be used to
process each match. It receives the key,
value, and any extra metadata included with
the key inside of the braces.