當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。