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


TypeScript jQuery.extend函数代码示例

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


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

示例1: function

 [add.hide]: function (state, action) {
     return $.extend({}, state, action.data, {
         visible: false,
         hasError:false,
         url:''
     });
 }
开发者ID:SparxoOpenSource,项目名称:SparxoShareMusic,代码行数:7,代码来源:add.ts

示例2:

 [add.error]:function(state,action) {
     return $.extend({},state,{
       hasError:true,
       isLoading:false,
       errorMessage:action.errorMessage
   });  
 },
开发者ID:SparxoOpenSource,项目名称:SparxoShareMusic,代码行数:7,代码来源:add.ts

示例3: constructor

 constructor(_calendar, overrides) {
   super()
   this._calendar = _calendar
   this.overrides = $.extend({}, overrides) // make a copy
   this.dynamicOverrides = {}
   this.compute()
 }
开发者ID:caseyjhol,项目名称:fullcalendar,代码行数:7,代码来源:OptionsManager.ts

示例4: getSaveModelClone

  // cleans meta data and other non peristent state
  getSaveModelClone() {
    // temp remove stuff
    var events = this.events;
    var meta = this.meta;
    var rows = this.rows;
    var variables = this.templating.list;

    delete this.events;
    delete this.meta;

    // prepare save model
    this.rows = _.map(rows, row => row.getSaveModel());
    this.templating.list = _.map(variables, variable => variable.getSaveModel ? variable.getSaveModel() : variable);

    // make clone
    var copy = $.extend(true, {}, this);
    //  sort clone
    copy = sortByKeys(copy);

    // restore properties
    this.events = events;
    this.meta = meta;
    this.rows = rows;
    this.templating.list = variables;

    return copy;
  }
开发者ID:Sensetif,项目名称:grafana,代码行数:28,代码来源:model.ts

示例5: function

    [player.remove]: function (state, action) {

        return $.extend({}, state, {
            playlist: state.playlist.filter(data => {
                return data.id != action.id;
            })
        });
    },
开发者ID:SparxoOpenSource,项目名称:SparxoShareMusic,代码行数:8,代码来源:player.ts

示例6: setGutters

 /*
 If falsy, resets all the gutters to 0
 */
 setGutters(gutters) {
   if (!gutters) {
     this.gutters = {}
   } else {
     $.extend(this.gutters, gutters)
   }
   this.updateSize()
 }
开发者ID:diomed,项目名称:fullcalendar-scheduler,代码行数:11,代码来源:ScrollerCanvas.ts

示例7:

 [session.success]:function(state,action) {
   sessionStorage['username2']=action.data.user.username;
   sessionStorage['studioid2']=action.data.user.studioId;
   return $.extend({},state,action.data,{
       hasError:false,
       isLoading:false
   });  
 },
开发者ID:SparxoOpenSource,项目名称:SparxoShareMusic,代码行数:8,代码来源:session.ts

示例8: queryScroll

  queryScroll() {
    const scroll = View.prototype.queryScroll.apply(this, arguments)

    if (this.isResourcesRendered) {
      $.extend(scroll, this.queryResourceScroll())
    }

    return scroll
  }
开发者ID:diomed,项目名称:fullcalendar-scheduler,代码行数:9,代码来源:ResourceViewMixin.ts

示例9: function

EventDef.prototype.applyMiscProps = function(rawProps) {
  rawProps = $.extend({}, rawProps) // clone, because of delete

  this.resourceIds = Resource.extractIds(rawProps, this.source.calendar)

  delete rawProps.resourceId
  delete rawProps.resourceIds

  origMethods.applyMiscProps.apply(this, arguments)
}
开发者ID:diomed,项目名称:fullcalendar-scheduler,代码行数:10,代码来源:EventDef.ts


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