FileListViewModel (constructor)

Summary

Location

Used across all instances a hash to cache attribute names and their getter
and setter names.

progress

Progress of uploading files

showProgressBar

Indicates that progress bar should show or hide

uploadFiles

List of uploading files

uploadStatus

List of uploading status

Methods

_changeAttrValue ( name , value
)

Internal helper for directly changing an attribute value.

Parameters

Name

Summary

Type

Usage

name

The property to set.

String

required

value

The value to set in the property.

Mixed

required

_get ( name , names
)

Private function that does a get based off a hash of names

Parameters

Name

Summary

Type

Usage

name

undefined

required

names

Hash of names of custom attributes

undefined

required

_set ( _b , _c
)

Parameters

Name

Summary

Type

Usage

_b

undefined

required

_c

undefined

required

get ( name
)

Get a property on a Stateful instance.

Parameters

Name

Summary

Type

Usage

name

The property to get.

String

required

postscript ( params
)

Parameters

Name

Summary

Type

Usage

params

Object

optional

set ( name , value
)

Set a property on a Stateful instance

Parameters

Name

Summary

Type

Usage

name

The property to set.

String

required

value

The value to set in the property.

Object

required

watch ( name , callback
)

Watches a property for changes

Parameters

Name

Summary

Type

Usage

name

Indicates the property to watch. This is optional (the callback may be the
only parameter), and if omitted, all the properties will be watched

String

optional

callback

The function to execute when the property changes. This will be called after
the property has been changed. The callback will be called with the |this|
set to the instance, the first argument as the name of the property, the
second argument as the old value and the third argument as the new value.