当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript declare.safeMixin函数代码示例

本文整理汇总了TypeScript中dojo/_base/declare.safeMixin函数的典型用法代码示例。如果您正苦于以下问题:TypeScript safeMixin函数的具体用法?TypeScript safeMixin怎么用?TypeScript safeMixin使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了safeMixin函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: function

 constructor: function (args) {
     if (args) {
         declare.safeMixin(this, args);
     }
     if (lang.exists("Sequence", this)) {
         this.store = new Store({
             wuid: this.Wuid,
             sequence: this.Sequence,
             isComplete: this.isComplete()
         });
     } else if (lang.exists("Name", this) && lang.exists("NodeGroup", this)) {
         this.store = new Store({
             wuid: this.Wuid,
             cluster: this.NodeGroup,
             name: this.Name,
             isComplete: true
         });
     } else {
         this.store = new Store({
             wuid: this.Wuid,
             cluster: this.Cluster,
             name: this.Name,
             isComplete: true
         });
     }
 },
开发者ID:richardkchapman,项目名称:HPCC-Platform,代码行数:26,代码来源:ESPResult.ts

示例2: inherited

 constructor: ESPUtil.override(function (inherited, args) {
     inherited();
     if (args) {
         declare.safeMixin(this, args);
     }
     this.wu = this;
 }),
开发者ID:richardkchapman,项目名称:HPCC-Platform,代码行数:7,代码来源:ESPDFUWorkunit.ts

示例3: inherited

 constructor: ESPUtil.override(function (inherited, args) {
     inherited(arguments);
     if (args) {
         declare.safeMixin(this, args);
     }
     this.queries = {};
 }),
开发者ID:AttilaVamos,项目名称:HPCC-Platform,代码行数:7,代码来源:ESPQuery.ts

示例4: inherited

 constructor: ESPUtil.override(function (inherited, args) {
     inherited(arguments);
     if (args) {
         declare.safeMixin(this, args);
     }
     this.wu = this;
     this._hpccWU = HPCCWorkunit.attach({ baseUrl: "" }, this.Wuid);
 }),
开发者ID:AttilaVamos,项目名称:HPCC-Platform,代码行数:8,代码来源:ESPWorkunit.ts

示例5: function

    constructor: function (options) {
        this.cachedArray = {};

        if (!this.service) {
            throw new Error("service:  Undefined - Missing service name (eg 'WsWorkunts').");
        }
        if (!this.action) {
            throw new Error("action:  Undefined - Missing action name (eg 'WUQuery').");
        }
        if (!this.responseQualifier) {
            throw new Error("responseQualifier:  Undefined - Missing action name (eg 'Workunits.ECLWorkunit').");
        }
        if (!this.idProperty) {
            throw new Error("idProperty:  Undefined - Missing ID field (eg 'Wuid').");
        }
        if (options) {
            declare.safeMixin(this, options);
        }
    },
开发者ID:AttilaVamos,项目名称:HPCC-Platform,代码行数:19,代码来源:ESPRequest.ts

示例6: function

 constructor: function (args) {
     if (args) {
         declare.safeMixin(this, args);
     }
     this.logicalFile = this;
 },
开发者ID:richardkchapman,项目名称:HPCC-Platform,代码行数:6,代码来源:ESPLogicalFile.ts

示例7: constructor

 constructor(args?) {
     if (args) {
         declare.safeMixin(this, args);
     }
 }
开发者ID:AttilaVamos,项目名称:HPCC-Platform,代码行数:5,代码来源:ESPBase.ts

示例8: function

 constructor: function (options) {
     declare.safeMixin(this, options);
 },
开发者ID:richardkchapman,项目名称:HPCC-Platform,代码行数:3,代码来源:ESPPackageProcess.ts

示例9: inherited

 constructor: ESPUtil.override(function (inherited, args) {
     inherited();
     declare.safeMixin(this, args);
     this.packageMap = this;
 })
开发者ID:richardkchapman,项目名称:HPCC-Platform,代码行数:5,代码来源:ESPPackageProcess.ts

示例10: function

 constructor: function (args) {
     if (args) {
         declare.safeMixin(this, args);
     }
 },
开发者ID:AttilaVamos,项目名称:HPCC-Platform,代码行数:5,代码来源:ESPTopology.ts


注:本文中的dojo/_base/declare.safeMixin函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。