本文整理汇总了TypeScript中@glimmer/reference.DirtyableTag类的典型用法代码示例。如果您正苦于以下问题:TypeScript DirtyableTag类的具体用法?TypeScript DirtyableTag怎么用?TypeScript DirtyableTag使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DirtyableTag类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: constructor
constructor(_environment: BootEnvironment, renderer: Renderer, owner: Container, template: OwnedTemplate) {
this._environment = _environment;
this.renderer = renderer;
this.owner = owner;
this.template = template;
this.outletState = null;
this._tag = DirtyableTag.create();
}
开发者ID:fpauser,项目名称:ember.js,代码行数:8,代码来源:outlet.ts
示例2: init
@public
*/
const Component = CoreView.extend(
ChildViewsSupport,
ViewStateSupport,
ClassNamesSupport,
TargetActionSupport,
ActionSupport,
ViewMixin,
{
isComponent: true,
init() {
this._super(...arguments);
this[IS_DISPATCHING_ATTRS] = false;
this[DIRTY_TAG] = DirtyableTag.create();
this[ROOT_REF] = new RootReference(this);
this[BOUNDS] = null;
// If in a tagless component, assert that no event handlers are defined
assert(
// tslint:disable-next-line:max-line-length
`You can not define a function that handles DOM events in the \`${this}\` tagless component since it doesn't have any DOM element.`,
this.tagName !== '' ||
!this.renderer._destinedForDOM ||
!(() => {
let eventDispatcher = getOwner(this).lookup<any | undefined>('event_dispatcher:main');
let events = (eventDispatcher && eventDispatcher._finalEvents) || {};
// tslint:disable-next-line:forin
for (let key in events) {
开发者ID:GreatWizard,项目名称:ember.js,代码行数:31,代码来源:component.ts
示例3: constructor
constructor(value: any) {
super();
this.tag = DirtyableTag.create();
this._value = value;
}
开发者ID:cibernox,项目名称:ember.js,代码行数:6,代码来源:references.ts
示例4: makeTag
function makeTag(): TagWrapper<DirtyableTag> {
return DirtyableTag.create();
}
开发者ID:emberjs,项目名称:ember.js,代码行数:3,代码来源:tags.ts
示例5: makeTag
function makeTag() {
return DirtyableTag.create();
}
开发者ID:GreatWizard,项目名称:ember.js,代码行数:3,代码来源:tags.ts
注:本文中的@glimmer/reference.DirtyableTag类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论