UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

30 lines (29 loc) 1.12 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { Base, markType, getInstanceType } from "igniteui-angular-core"; import { DictionaryUtil } from "igniteui-angular-core"; /** * @hidden */ export class MessageHandler_Spark extends Base { constructor() { super(...arguments); this.a = DictionaryUtil.dictionaryCreate(); } static { this.$t = markType(MessageHandler_Spark, 'MessageHandler_Spark'); } addHandler(a, b) { this.a.set(a.typeName, b); } messageReceived(a) { let b; let c = getInstanceType(a).typeName; if (this.a.has(c)) { b = this.a.get(c); b(a); } } }