本文整理汇总了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:''
});
}
示例2:
[add.error]:function(state,action) {
return $.extend({},state,{
hasError:true,
isLoading:false,
errorMessage:action.errorMessage
});
},
示例3: constructor
constructor(_calendar, overrides) {
super()
this._calendar = _calendar
this.overrides = $.extend({}, overrides) // make a copy
this.dynamicOverrides = {}
this.compute()
}
示例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;
}
示例5: function
[player.remove]: function (state, action) {
return $.extend({}, state, {
playlist: state.playlist.filter(data => {
return data.id != action.id;
})
});
},
示例6: setGutters
/*
If falsy, resets all the gutters to 0
*/
setGutters(gutters) {
if (!gutters) {
this.gutters = {}
} else {
$.extend(this.gutters, gutters)
}
this.updateSize()
}
示例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
});
},
示例8: queryScroll
queryScroll() {
const scroll = View.prototype.queryScroll.apply(this, arguments)
if (this.isResourcesRendered) {
$.extend(scroll, this.queryResourceScroll())
}
return scroll
}
示例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)
}