UNPKG

ares-ide

Version:

A browser-based code editor and UI designer for Enyo 2 projects

33 lines (32 loc) 900 B
//*@public /** _enyo.Controller_ is the base kind for all controllers in Enyo. An abstract kind, it is a delegate/component that is designed to be a proxy for information. */ enyo.kind({ //*@public name: "enyo.Controller", kind: "enyo.MultipleDispatchComponent", /** Set this flag to `true` such that when instanced this _controller_ will be available globally. If this flag is `true` even the `owner` (if any) cannot _destroy_ it. */ global: false, /** The default source of information for all instances of _enyo.Controller_ and its subkinds. In some cases, this will be a computed property to facilitate overloading. It may contain any type of data. */ data: null, //*@protected constructor: enyo.inherit(function (sup) { return function () { sup.apply(this, arguments); if (this.global) { enyo.setPath(this.name, this); } }; }), _isController: true });