Module Ember

Index

Variables

Modules

Classes

Functions

Variables

$: JQueryStatic

Alias for jQuery.

ArrayPolyfills: { map: ItemIndexEnumerableCallbackTarget; forEach: (callback: Function, target?: any) => any; indexOf: (object: any, startAt: number) => number; }

Array polyfills to support ES5 features in older browsers.

public ArrayPolyfills.forEach: forEach

public ArrayPolyfills.indexOf: indexOf

public ArrayPolyfills.map: ItemIndexEnumerableCallbackTarget

BOOTED: boolean

EMPTY_META: {}

ENV: {}

EXTEND_PROTOTYPES: boolean

EnumerableUtils: {}

Error: any

A subclass of the JavaScript Error object for use in Ember.

FROZEN_ERROR: string

GUID_KEY: string

IS_BINDING: RegExp

K: Function

LOG_BINDINGS: boolean

LOG_STACKTRACE_ON_DEPRECATION: boolean

LOG_VERSION: boolean

Logger: { assert(param: any): void; debug(...any: any[]): void; error(...any: any[]): void; info(...any: any[]): void; log(...any: any[]): void; warn(...any: any[]): void; }

public assert()

.param.param: any

public debug()

optional .any.any?: Array<any>

public error()

optional .any.any?: Array<any>

public info()

optional .any.any?: Array<any>

public log()

optional .any.any?: Array<any>

public warn()

optional .any.any?: Array<any>

META_KEY: string

NAME_KEY: string

ORDER_DEFINITION: Array<string>

SHIM_ES5: boolean

STRINGS: boolean

TEMPLATES: {}

VERSION: string

ViewUtils: {}

addObserver: ModifyObserver

alias: deprecateFunc

Ember.alias is deprecated. Please use Ember.aliasMethod or Ember.computed.alias instead.

anyUnprocessedMixins: boolean

computed: { alias(dependentKey: string): Ember.ComputedProperty; and(...string: any[]): Ember.ComputedProperty; any(...string: any[]): Ember.ComputedProperty; bool(dependentKey: string): Ember.ComputedProperty; defaultTo(defaultPath: string): Ember.ComputedProperty; empty(dependentKey: string): Ember.ComputedProperty; equal(dependentKey: string, value: any): Ember.ComputedProperty; gt(dependentKey: string, value: number): Ember.ComputedProperty; gte(dependentKey: string, value: number): Ember.ComputedProperty; lt(dependentKey: string, value: number): Ember.ComputedProperty; lte(dependentKey: string, value: number): Ember.ComputedProperty; map(...string: any[]): Ember.ComputedProperty; match(dependentKey: string, regexp: RegExp): Ember.ComputedProperty; none(dependentKey: string): Ember.ComputedProperty; not(dependentKey: string): Ember.ComputedProperty; notEmpty(dependentKey: string): Ember.ComputedProperty; oneWay(dependentKey: string): Ember.ComputedProperty; or(...string: any[]): Ember.ComputedProperty; (callback: Function): Ember.ComputedProperty; }

(): ComputedProperty

Returns

ComputedProperty

public alias(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

public and(): ComputedProperty

Returns

ComputedProperty

optional .string.string?: Array<any>

public any(): ComputedProperty

Returns

ComputedProperty

optional .string.string?: Array<any>

public bool(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

public defaultTo(): ComputedProperty

Returns

ComputedProperty

.defaultPath.defaultPath: string

public empty(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

public equal(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

.value.value: any

public gt(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

.value.value: number

public gte(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

.value.value: number

public lt(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

.value.value: number

public lte(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

.value.value: number

public map(): ComputedProperty

Returns

ComputedProperty

optional .string.string?: Array<any>

public match(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

.regexp.regexp: RegExp

public none(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

public not(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

public notEmpty(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

public oneWay(): ComputedProperty

Returns

ComputedProperty

.dependentKey.dependentKey: string

public or(): ComputedProperty

Returns

ComputedProperty

optional .string.string?: Array<any>

config: {}

empty: deprecateFunc

Ember.empty is deprecated. Please use Ember.isEmpty instead.

exports: {}

getPath: deprecateFunc

getPath is deprecated since get now supports paths.

imports: {}

isNamespace: boolean

lookup: {}

none: deprecateFunc

Ember.none is deprecated. Please use Ember.isNone instead.

onError: Error

platform: { addBeforeObserver: ModifyObserver; addObserver: ModifyObserver; defineProperty(obj: any, keyName: string, desc: {}): void; removeBeforeObserver: ModifyObserver; removeObserver: ModifyObserver; hasPropertyAccessors: boolean; }

public platform.addBeforeObserver: ModifyObserver

public platform.addObserver: ModifyObserver

public platform.hasPropertyAccessors: boolean

public platform.removeBeforeObserver: ModifyObserver

public platform.removeObserver: ModifyObserver

public defineProperty()

.desc.desc: {}

.keyName.keyName: string

.obj.obj: any

run: { begin(): void; cancel(timer: any): void; debounce(target: any, method: Function, ...args: any[]): void; debounce(target: any, method: string, ...args: any[]): void; end(): void; join(target: any, method: Function, ...any: any[]): any; join(target: any, method: string, ...any: any[]): any; later(target: any, method: Function, ...args: any[]): string; later(target: any, method: string, ...args: any[]): string; next(target: any, method: Function, ...any: any[]): number; next(target: any, method: string, ...any: any[]): number; once(target: any, method: Function, ...any: any[]): number; once(target: any, method: string, ...any: any[]): number; schedule(queue: string, target: any, method: Function, ...any: any[]): void; schedule(queue: string, target: any, method: string, ...any: any[]): void; scheduleOnce(queue: string, target: any, method: Function, ...any: any[]): void; scheduleOnce(queue: string, target: any, method: string, ...any: any[]): void; sync(): void; throttle(target: any, method: Function, ...args: any[]): void; throttle(target: any, method: string, ...args: any[]): void; queues: any[]; (target: any, method: Function): void; }

()

public run.queues: Array<any>

public begin()

public cancel()

.timer.timer: any

public debounce()

optional .args.args?: Array<any>

.method.method: string

.target.target: any

public debounce()

optional .args.args?: Array<any>

.method.method: Function

.target.target: any

public end()

public join(): any

Returns

any

optional .any.any?: Array<any>

.method.method: Function

.target.target: any

public join(): any

Returns

any

optional .any.any?: Array<any>

.method.method: string

.target.target: any

public later(): string

Returns

string

optional .args.args?: Array<any>

.method.method: Function

.target.target: any

public later(): string

Returns

string

optional .args.args?: Array<any>

.method.method: string

.target.target: any

public next(): number

Returns

number

optional .any.any?: Array<any>

.method.method: string

.target.target: any

public next(): number

Returns

number

optional .any.any?: Array<any>

.method.method: Function

.target.target: any

public once(): number

Returns

number

optional .any.any?: Array<any>

.method.method: string

.target.target: any

public once(): number

Returns

number

optional .any.any?: Array<any>

.method.method: Function

.target.target: any

public schedule()

optional .any.any?: Array<any>

.method.method: Function

.queue.queue: string

.target.target: any

public schedule()

optional .any.any?: Array<any>

.method.method: string

.queue.queue: string

.target.target: any

public scheduleOnce()

optional .any.any?: Array<any>

.method.method: Function

.queue.queue: string

.target.target: any

public scheduleOnce()

optional .any.any?: Array<any>

.method.method: string

.queue.queue: string

.target.target: any

public sync()

public throttle()

optional .args.args?: Array<any>

.method.method: Function

.target.target: any

public throttle()

optional .args.args?: Array<any>

.method.method: string

.target.target: any

setPath: deprecateFunc

setPath is deprecated since set now supports paths.

trySetPath: deprecateFunc

trySetPath has been renamed to trySet.

uuid: number

Functions

A(arr?: Array<any>): NativeArray

Creates an Ember.NativeArray from an Array like object. Does not modify the original object. Ember.A is not needed if Ember.EXTEND_PROTOTYPES is true (the default value). However, it is recommended that you use Ember.A when creating addons for ember or when you can not garentee that Ember.EXTEND_PROTOTYPES will be true.

Parameters

  • arr?: Array<any> optional

Returns

NativeArray

DEFAULT_GETTER_FUNCTION(name: string): Function

Parameters

  • name: string

Returns

Function

MANDATORY_SETTER_FUNCTION(value: string)

Parameters

  • value: string

addBeforeObserver(obj: any, path: string, target: any, method: Function): any

Parameters

  • obj: any
  • path: string
  • target: any
  • method: Function

Returns

any

addListener(obj: any, eventName: string, target: any, method: Function, once?: boolean)

Parameters

  • obj: any
  • eventName: string
  • target: any
  • method: Function
  • once?: boolean optional

addListener(obj: any, eventName: string, target: any, method: string, once?: boolean)

Parameters

  • obj: any
  • eventName: string
  • target: any
  • method: string
  • once?: boolean optional

addListener(obj: any, eventName: string, func: Function, method: Function, once?: boolean)

Parameters

  • obj: any
  • eventName: string
  • func: Function
  • method: Function
  • once?: boolean optional

addListener(obj: any, eventName: string, func: Function, method: string, once?: boolean)

Parameters

  • obj: any
  • eventName: string
  • func: Function
  • method: string
  • once?: boolean optional

aliasMethod(methodName: string): Descriptor

Parameters

  • methodName: string

Returns

Descriptor

assert(desc: string, test: boolean)

Parameters

  • desc: string
  • test: boolean

beforeObserver(func: Function, propertyName: string): Function

Parameters

  • func: Function
  • propertyName: string

Returns

Function

beforeObserversFor(obj: any, path: string): Array<string>

Parameters

  • obj: any
  • path: string

Returns

Array<string>

beginPropertyChanges()

bind(obj: any, to: string, from: string): Binding

Parameters

  • obj: any
  • to: string
  • from: string

Returns

Binding

cacheFor(obj: any, key: string): any

Parameters

  • obj: any
  • key: string

Returns

any

canInvoke(obj: any, methodName: string): boolean

Parameters

  • obj: any
  • methodName: string

Returns

boolean

changeProperties(callback: Function, binding?: any)

Parameters

  • callback: Function
  • binding?: any optional

compare(v: any, w: any): number

Parameters

  • v: any
  • w: any

Returns

number

controllerFor(container: Container, controllerName: string, lookupOptions?: {}): Controller

Parameters

  • container: Container
  • controllerName: string
  • lookupOptions?: {} optional

Returns

Controller

copy(obj: any, deep: boolean): any

Parameters

  • obj: any
  • deep: boolean

Returns

any

create(arguments?: {}): CoreObject

Creates an instance of the CoreObject class.

Parameters

  • arguments?: {} optional

    A hash containing values with which to initialize the newly instantiated object.

Returns

CoreObject

debug(message: string)

Parameters

  • message: string

defineProperty(obj: any, keyName: string, desc: {})

Parameters

  • obj: any
  • keyName: string
  • desc: {}

deprecate(message: string, test?: boolean)

Parameters

  • message: string
  • test?: boolean optional

deprecateFunc(message: string, func: Function): Function

Parameters

  • message: string
  • func: Function

Returns

Function

destroy(obj: any)

Parameters

  • obj: any

endPropertyChanges()

finishChains(obj: any)

Parameters

  • obj: any

flushPendingChains()

generateController(container: Container, controllerName: string, context: any): Controller

Parameters

  • container: Container
  • controllerName: string
  • context: any

Returns

Controller

generateGuid(obj: any, prefix?: string): string

Parameters

  • obj: any
  • prefix?: string optional

Returns

string

get(obj: any, keyName: string): any

Parameters

  • obj: any
  • keyName: string

Returns

any

getMeta(obj: any, property: string): any

Parameters

  • obj: any
  • property: string

Returns

any

getWithDefault(root: string, key: string, defaultValue: any): any

Parameters

  • root: string
  • key: string
  • defaultValue: any

Returns

any

guidFor(obj: any): string

Parameters

  • obj: any

Returns

string

handleErrors(func: Function, context: any): any

Parameters

  • func: Function
  • context: any

Returns

any

hasListeners(context: any, name: string): boolean

Parameters

  • context: any
  • name: string

Returns

boolean

hasOwnProperty(prop: string): boolean

Parameters

  • prop: string

Returns

boolean

immediateObserver(func: Function, propertyNames?: Array<any>): Function

Parameters

  • func: Function
  • propertyNames?: Array<any> optional

Returns

Function

inspect(obj: any): string

Parameters

  • obj: any

Returns

string

instrument(name: string, payload: any, callback: Function, binding: any)

Parameters

  • name: string
  • payload: any
  • callback: Function
  • binding: any

isArray(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

isEmpty(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

isEqual(a: any, b: any): boolean

Parameters

  • a: any
  • b: any

Returns

boolean

isGlobalPath(path: string): boolean

Parameters

  • path: string

Returns

boolean

isNone(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

isPrototypeOf(obj: {}): boolean

Parameters

  • obj: {}

Returns

boolean

isWatching(obj: any, key: string): boolean

Parameters

  • obj: any
  • key: string

Returns

boolean

keys(obj: any): Array<any>

Parameters

  • obj: any

Returns

Array<any>

listenersDiff(obj: any, eventName: string, otherActions: Array<any>): Array<any>

Parameters

  • obj: any
  • eventName: string
  • otherActions: Array<any>

Returns

Array<any>

listenersFor(obj: any, eventName: string): Array<any>

Parameters

  • obj: any
  • eventName: string

Returns

Array<any>

listenersUnion(obj: any, eventName: string, otherActions: Array<any>)

Parameters

  • obj: any
  • eventName: string
  • otherActions: Array<any>

makeArray(obj: any): Array<any>

Parameters

  • obj: any

Returns

Array<any>

merge(original: any, updates: any): any

Parameters

  • original: any
  • updates: any

Returns

any

meta(obj: any, writable?: boolean): {}

Parameters

  • obj: any
  • writable?: boolean optional

Returns

{}

metaPath(obj: any, path: string, writable?: boolean): any

Parameters

  • obj: any
  • path: string
  • writable?: boolean optional

Returns

any

mixin(obj: any, any?: Array<any>): any

Parameters

  • obj: any
  • any?: Array<any> optional

Returns

any

normalizeTuple(target: any, path: string): Array<any>

Parameters

  • target: any
  • path: string

Returns

Array<any>

observer(func: Function, string?: Array<any>): Function

Parameters

  • func: Function
  • string?: Array<any> optional

Returns

Function

observersFor(obj: any, path: string): Array<any>

Parameters

  • obj: any
  • path: string

Returns

Array<any>

onLoad(name: string, callback: Function)

Parameters

  • name: string
  • callback: Function

oneWay(obj: any, to: string, from: string): Binding

Parameters

  • obj: any
  • to: string
  • from: string

Returns

Binding

overrideChains(obj: any, keyName: string, m: any): boolean

Parameters

  • obj: any
  • keyName: string
  • m: any

Returns

boolean

propertyDidChange(obj: any, keyName: string)

Parameters

  • obj: any
  • keyName: string

propertyIsEnumerable(prop: string): boolean

Parameters

  • prop: string

Returns

boolean

propertyWillChange(obj: any, keyName: string)

Parameters

  • obj: any
  • keyName: string

removeBeforeObserver(obj: any, path: string, target: any, method: Function): any

Parameters

  • obj: any
  • path: string
  • target: any
  • method: Function

Returns

any

removeChainWatcher(obj: any, keyName: string, node: any)

Parameters

  • obj: any
  • keyName: string
  • node: any

removeListener(obj: any, eventName: string, target: any, method: Function)

Parameters

  • obj: any
  • eventName: string
  • target: any
  • method: Function

removeListener(obj: any, eventName: string, target: any, method: string)

Parameters

  • obj: any
  • eventName: string
  • target: any
  • method: string

removeListener(obj: any, eventName: string, func: Function, method: Function)

Parameters

  • obj: any
  • eventName: string
  • func: Function
  • method: Function

removeListener(obj: any, eventName: string, func: Function, method: string)

Parameters

  • obj: any
  • eventName: string
  • func: Function
  • method: string

removeObserver(obj: any, path: string, target: any, method: Function): any

Parameters

  • obj: any
  • path: string
  • target: any
  • method: Function

Returns

any

required(): Descriptor

Returns

Descriptor

rewatch(obj: any)

Parameters

  • obj: any

runLoadHooks(name: string, object: any)

Parameters

  • name: string
  • object: any

sendEvent(obj: any, eventName: string, params?: Array<any>, actions?: Array<any>): boolean

Parameters

  • obj: any
  • eventName: string
  • params?: Array<any> optional
  • actions?: Array<any> optional

Returns

boolean

set(obj: any, keyName: string, value: any): any

Parameters

  • obj: any
  • keyName: string
  • value: any

Returns

any

setMeta(obj: any, property: string, value: any)

Parameters

  • obj: any
  • property: string
  • value: any

setProperties(self: any, hash: {}): any

Parameters

  • self: any
  • hash: {}

Returns

any

subscribe(pattern: string, object: any)

Parameters

  • pattern: string
  • object: any

toLocaleString(): string

Returns

string

toString(): string

Returns

string

tryCatchFinally(tryable: Function, catchable: Function, finalizer: Function, binding?: any): any

Parameters

  • tryable: Function
  • catchable: Function
  • finalizer: Function
  • binding?: any optional

Returns

any

tryFinally(tryable: Function, finalizer: Function, binding?: any): any

Parameters

  • tryable: Function
  • finalizer: Function
  • binding?: any optional

Returns

any

tryInvoke(obj: any, methodName: string, args?: Array<any>): any

Parameters

  • obj: any
  • methodName: string
  • args?: Array<any> optional

Returns

any

trySet(obj: any, path: string, value: any)

Parameters

  • obj: any
  • path: string
  • value: any

typeOf(item: any): string

Parameters

  • item: any

Returns

string

unwatch(obj: any, keyPath: string)

Parameters

  • obj: any
  • keyPath: string

unwatchKey(obj: any, keyName: string)

Parameters

  • obj: any
  • keyName: string

unwatchPath(obj: any, keyPath: string)

Parameters

  • obj: any
  • keyPath: string

valueOf(): {}

Returns

{}

warn(message: string, test?: boolean)

Parameters

  • message: string
  • test?: boolean optional

watch(obj: any, keyPath: string)

Parameters

  • obj: any
  • keyPath: string

watchKey(obj: any, keyName: string)

Parameters

  • obj: any
  • keyName: string

watchPath(obj: any, keyPath: string)

Parameters

  • obj: any
  • keyPath: string

watchedEvents(obj: {}): Array<any>

Parameters

  • obj: {}

Returns

Array<any>

wrap(func: Function, superFunc: Function): Function

Parameters

  • func: Function
  • superFunc: Function

Returns

Function