Ember.platform Namespace packages/ember-metal/lib/platform.js:125
Defined in: packages/ember-metal/lib/platform.js:125
Module: ember-metal
Platform specific methods and feature detectors needed by the framework.
Show:
Methods
Properties
Show:
addBeforeObserver
(obj, path, targetOrMethod, method)
Parameters:
- obj
- path String
- targetOrMethod Object|Function
- method Function|String
addObserver
(obj, path, targetOrMethod, method)
Parameters:
- obj
- path String
- targetOrMethod Object|Function
- method Function|String
defineProperty
(obj, keyName, desc)
Void
Identical to Object.defineProperty()
. Implements as much functionality
as possible if not available natively.
Parameters:
- obj Object
- The object to modify
- keyName String
- property name to modify
- desc Object
- descriptor hash
Returns:
- Void
removeBeforeObserver
(obj, path, targetOrMethod, method)
Parameters:
- obj
- path String
- targetOrMethod Object|Function
- method Function|String
removeObserver
(obj, path, targetOrMethod, method)
Parameters:
- obj
- path String
- targetOrMethod Object|Function
- method Function|String
Show:
hasPropertyAccessors
constant
Set to true if the platform supports native getters and setters.