_id
stringlengths
2
6
title
stringlengths
0
58
partition
stringclasses
3 values
text
stringlengths
52
373k
language
stringclasses
1 value
meta_information
dict
q28700
Toolbar
train
function Toolbar() { var buttons = {}; /*jslint unparam: true*//* allow the unused param title until Toolbar rewrite*/ function add(id, text, title, fn) { if (!buttons[id]) { var button = renderer.text( text, 0, 0 ) .css(options.toolbar.itemStyle) .align({ alig...
javascript
{ "resource": "" }
q28701
defaultFormatter
train
function defaultFormatter() { var pThis = this, items = pThis.points || splat(pThis), xAxis = items[0].series.xAxis, x = pThis.x, isDateTime = xAxis && xAxis.options.type === 'datetime', useHeader = isString(x) || isDateTime, s; // build the header s = useHeader ? ['<spa...
javascript
{ "resource": "" }
q28702
onmousemove
train
function onmousemove(e) { var point, points, hoverPoint = chart.hoverPoint, hoverSeries = chart.hoverSeries, i, j, distance = chartWidth, index = inverted ? e.chartY : e.chartX - plotLeft; // wtf? // shared tooltip if (tooltip && options.shared) { points = []; ...
javascript
{ "resource": "" }
q28703
drop
train
function drop() { if (selectionMarker) { var selectionData = { xAxis: [], yAxis: [] }, selectionBox = selectionMarker.getBBox(), selectionLeft = selectionBox.x - plotLeft, selectionTop = selectionBox.y - plotTop; // a selection has been made if (hasDragged) {...
javascript
{ "resource": "" }
q28704
hideTooltipOnMouseMove
train
function hideTooltipOnMouseMove(e) { var pageX = defined(e.pageX) ? e.pageX : e.page.x, // In mootools the event is wrapped and the page x/y position is named e.page.x pageY = defined(e.pageX) ? e.pageY : e.page.y; // Ref: http://mootools.net/docs/core/Types/DOMEvent if (chartPosition && !isInsideP...
javascript
{ "resource": "" }
q28705
destroy
train
function destroy() { // Destroy the tracker group element if (chart.trackerGroup) { chart.trackerGroup = trackerGroup = chart.trackerGroup.destroy(); } removeEvent(doc, 'mousemove', hideTooltipOnMouseMove); container.onclick = container.onmousedown = container.onmousemove = container.ontouchs...
javascript
{ "resource": "" }
q28706
destroyItem
train
function destroyItem(item) { var checkbox = item.checkbox; // pull out from the array //erase(allItems, item); // destroy SVG elements each(['legendItem', 'legendLine', 'legendSymbol'], function (key) { if (item[key]) { item[key].destroy(); } }); if (checkbox) { di...
javascript
{ "resource": "" }
q28707
train
function () { if (!this.hasImportedEvents) { var point = this, options = merge(point.series.options.point, point.options), events = options.events, eventType; point.events = events; for (eventType in events) { addEvent(point, eventType, events[eventType]); } this.hasImport...
javascript
{ "resource": "" }
q28708
train
function () { var series = this, options = series.options, xIncrement = series.xIncrement; xIncrement = pick(xIncrement, options.pointStart, 0); series.pointInterval = pick(series.pointInterval, options.pointInterval, 1); series.xIncrement = xIncrement + series.pointInterval; return xIncrem...
javascript
{ "resource": "" }
q28709
train
function () { var series = this, chart = series.chart, data = series.data, closestPoints, smallestInterval, chartSmallestInterval = chart.smallestInterval, interval, i; // sort the data points stableSort(data, function (a, b) { return (a.x - b.x); }); // remove points ...
javascript
{ "resource": "" }
q28710
train
function () { // trigger the event only if listeners exist var series = this, options = series.options, chart = series.chart, tooltip = chart.tooltip, hoverPoint = chart.hoverPoint; // trigger mouse out on the point, which must be in this series if (hoverPoint) { hoverPoint.onMouseOut(...
javascript
{ "resource": "" }
q28711
train
function (options, base1, base2, base3) { var conversion = this.pointAttrToOptions, attr, option, obj = {}; options = options || {}; base1 = base1 || {}; base2 = base2 || {}; base3 = base3 || {}; for (attr in conversion) { option = conversion[attr]; obj[attr] = pick(options[opt...
javascript
{ "resource": "" }
q28712
train
function (state) { var series = this, options = series.options, graph = series.graph, stateOptions = options.states, lineWidth = options.lineWidth; state = state || NORMAL_STATE; if (series.state !== state) { series.state = state; if (stateOptions[state] && stateOptions[state].ena...
javascript
{ "resource": "" }
q28713
train
function (selected) { var series = this; // if called without an argument, toggle series.selected = selected = (selected === UNDEFINED) ? !series.selected : selected; if (series.checkbox) { series.checkbox.checked = selected; } fireEvent(series, selected ? 'select' : 'unselect'); }
javascript
{ "resource": "" }
q28714
train
function () { var series = this, chart = series.chart, renderer = chart.renderer, shapeArgs, tracker, trackerLabel = +new Date(), options = series.options, cursor = options.cursor, css = cursor && { cursor: cursor }, rel; each(series.data, function (point) { tracker = poi...
javascript
{ "resource": "" }
q28715
train
function () { var series = this; Series.prototype.translate.apply(series); each(series.data, function (point) { point.shapeType = 'circle'; point.shapeArgs = { x: point.plotX, y: point.plotY, r: series.chart.options.tooltip.snap }; }); }
javascript
{ "resource": "" }
q28716
train
function () { var series = this; // cache attributes for shapes //series.getAttribs(); this.drawPoints(); // draw the mouse tracking area if (series.options.enableMouseTracking !== false) { series.drawTracker(); } // PATCH by Simon Fishel // // execute...
javascript
{ "resource": "" }
q28717
Argument
train
function Argument(argumentConfig) { if (!argumentConfig) { argumentConfig = {}; } this.name = utils.isUndefined(argumentConfig.name) ? "" : argumentConfig.name; this.description = utils.isUndefined(argumentConfig.description) ? null : argumentConfig.description; this...
javascript
{ "resource": "" }
q28718
Event
train
function Event(eventConfig) { eventConfig = utils.isUndefined(eventConfig) ? {} : eventConfig; this.data = utils.isUndefined(eventConfig.data) ? null : eventConfig.data; this.done = utils.isUndefined(eventConfig.done) ? true : eventConfig.done; this.host = utils.isUndefined(eventConfig....
javascript
{ "resource": "" }
q28719
train
function(results, job, done) { // Print out the statics console.log("Job Statistics: "); console.log(" Event Count: " + job.properties().eventCount); console.log(" Disk Usage: " + job.properties().diskUsage + " bytes"); console.log(" Pri...
javascript
{ "resource": "" }
q28720
train
function (path, callback) { var mkdir = child_process.spawn('mkdir', ['-p', path]); mkdir.on('error', function (err) { callback(err); callback = function(){}; }); mkdir.on('exit', function (code) { if (code === 0) callback(); else callback(new Error('mkdir exited with cod...
javascript
{ "resource": "" }
q28721
train
function(http, params) { if (!(http instanceof Http) && !params) { // Move over the params params = http; http = null; } params = params || {}; this.scheme = params.scheme || "https"; this.host ...
javascript
{ "resource": "" }
q28722
train
function(path, namespace) { namespace = namespace || {}; if (utils.startsWith(path, "/")) { return path; } // If we don't have an app name (explicitly or implicitly), we default to /services/ if (!namespace.app && !this.app && namespace.shari...
javascript
{ "resource": "" }
q28723
train
function(callback) { var that = this; var url = this.paths.login; var params = { username: this.username, password: this.password, cookie : '1' }; callback = callback || function() {}; var wrappedCa...
javascript
{ "resource": "" }
q28724
train
function(path, params, callback) { var that = this; var request = function(callback) { return that.http.del( that.urlify(path), that._headers(), params, that.timeout, callback ...
javascript
{ "resource": "" }
q28725
train
function(path, method, query, post, body, headers, callback) { var that = this; var request = function(callback) { return that.http.request( that.urlify(path), { method: method, headers: that....
javascript
{ "resource": "" }
q28726
train
function() { this._super.apply(this, arguments); // We perform the bindings so that every function works // properly when it is passed as a callback. this.specialize = utils.bind(this, this.specialize); this.apps = utils.bind(this, this...
javascript
{ "resource": "" }
q28727
train
function(owner, app) { return new Service(this.http, { scheme: this.scheme, host: this.host, port: this.port, username: this.username, password: this.password, owner: owner, app: app, ...
javascript
{ "resource": "" }
q28728
train
function(sid, namespace, callback) { if (!callback && utils.isFunction(namespace)) { callback = namespace; namespace = null; } var job = new root.Job(this, sid, namespace); return job.fetch({}, callback); }
javascript
{ "resource": "" }
q28729
train
function(callback) { callback = callback || function() {}; var that = this; var req = this.get(Paths.currentUser, {}, function(err, response) { if (err) { callback(err); } else { var...
javascript
{ "resource": "" }
q28730
train
function(query, params, callback) { if (!callback && utils.isFunction(params)) { callback = params; params = {}; } callback = callback || function() {}; params = params || {}; params.q = query; ...
javascript
{ "resource": "" }
q28731
train
function(prefix, count, callback) { if (!callback && utils.isFunction(count)) { callback = count; count = 10; } callback = callback || function() {}; var params = { count: count || 10, prefix: pr...
javascript
{ "resource": "" }
q28732
train
function(event, params, callback) { if (!callback && utils.isFunction(params)) { callback = params; params = {}; } callback = callback || function() {}; params = params || {}; // If the event is a JSON ...
javascript
{ "resource": "" }
q28733
train
function(service, qualifiedPath) { if (!service) { throw new Error("Passed in a null Service."); } if (!qualifiedPath) { throw new Error("Passed in an empty path."); } this.service = service; this.qualifiedPath = q...
javascript
{ "resource": "" }
q28734
train
function(relpath, params, callback) { var url = this.qualifiedPath; // If we have a relative path, we will append it with a preceding // slash. if (relpath) { url = url + "/" + relpath; } return this.service.get( ...
javascript
{ "resource": "" }
q28735
train
function(relpath, params, callback) { var url = this.qualifiedPath; // If we have a relative path, we will append it with a preceding // slash. if (relpath) { url = url + "/" + relpath; } return this.service.post( ...
javascript
{ "resource": "" }
q28736
train
function(relpath, params, callback) { var url = this.qualifiedPath; // If we have a relative path, we will append it with a preceding // slash. if (relpath) { url = url + "/" + relpath; } return this.service.del( ...
javascript
{ "resource": "" }
q28737
train
function(service, path, namespace) { var fullpath = service.fullpath(path, namespace); this._super(service, fullpath); this.namespace = namespace; this._properties = {}; this._state = {}; // We perform the bindings so that...
javascript
{ "resource": "" }
q28738
train
function(service, path, namespace) { this._super(service, path, namespace); // We perform the bindings so that every function works // properly when it is passed as a callback. this._load = utils.bind(this, this._load); this.fetch = utils...
javascript
{ "resource": "" }
q28739
train
function(properties) { properties = utils.isArray(properties) ? properties[0] : properties; // Initialize the properties to // empty values properties = properties || { content: {}, fields: {}, acl: {}, ...
javascript
{ "resource": "" }
q28740
train
function(options, callback) { if (!callback && utils.isFunction(options)) { callback = options; options = {}; } callback = callback || function() {}; options = options || {}; var that = this; ...
javascript
{ "resource": "" }
q28741
train
function(props, callback) { callback = callback || function() {}; if (props.hasOwnProperty("name")) { throw new Error("Cannot set 'name' field in 'update'"); } var that = this; var req = this.post("", props, function(e...
javascript
{ "resource": "" }
q28742
train
function(callback) { callback = callback || function() {}; var that = this; this.post("disable", {}, function(err, response) { if (err) { callback(err); } else { callback(null, that);...
javascript
{ "resource": "" }
q28743
train
function(service, path, namespace) { this._super(service, path, namespace); // We perform the bindings so that every function works // properly when it is passed as a callback. this._load = utils.bind(this, this._load); this.fetch ...
javascript
{ "resource": "" }
q28744
train
function(options, callback) { if (!callback && utils.isFunction(options)) { callback = options; options = {}; } callback = callback || function() {}; options = options || {}; if (!options.count) { op...
javascript
{ "resource": "" }
q28745
train
function(id, namespace) { if (utils.isEmpty(namespace)) { namespace = null; } if (!id) { throw new Error("Must suply a non-empty name."); } if (namespace && (namespace.app === '-' || names...
javascript
{ "resource": "" }
q28746
train
function(params, callback) { callback = callback || function() {}; var that = this; var req = this.post("", params, function(err, response) { if (err) { callback(err); } else { var props = respons...
javascript
{ "resource": "" }
q28747
train
function(service, name, namespace) { this.name = name; this._super(service, this.path(), namespace); this.acknowledge = utils.bind(this, this.acknowledge); this.dispatch = utils.bind(this, this.dispatch); this.history = utils.bind(this, ...
javascript
{ "resource": "" }
q28748
train
function(options, callback) { if (!callback && utils.isFunction(options)) { callback = options; options = {}; } callback = callback || function() {}; options = options || {}; var that = this; ...
javascript
{ "resource": "" }
q28749
train
function(params, callback) { params = params || {}; if (!params.search) { var update = this._super; var req = this.fetch(function(err, search) { if (err) { callback(err); } ...
javascript
{ "resource": "" }
q28750
train
function(props) { var entityNamespace = utils.namespaceFromProperties(props); return new root.SavedSearch(this.service, props.name, entityNamespace); }
javascript
{ "resource": "" }
q28751
train
function(props) { var entityNamespace = utils.namespaceFromProperties(props); return new root.StoragePassword(this.service, props.name, entityNamespace); }
javascript
{ "resource": "" }
q28752
train
function(service, name, namespace) { this.name = name; this._super(service, this.path(), namespace); this.list = utils.bind(this, this.list); }
javascript
{ "resource": "" }
q28753
train
function(props) { var entityNamespace = utils.namespaceFromProperties(props); return new root.FiredAlertGroup(this.service, props.name, entityNamespace); }
javascript
{ "resource": "" }
q28754
train
function(service, namespace) { this._super(service, this.path(), namespace); this.instantiateEntity = utils.bind(this, this.instantiateEntity); this.remove = utils.bind(this, this.remove); }
javascript
{ "resource": "" }
q28755
train
function(service, name) { this.name = name; this._super(service, this.path(), {}); this.setupInfo = utils.bind(this, this.setupInfo); this.updateInfo = utils.bind(this, this.updateInfo); }
javascript
{ "resource": "" }
q28756
train
function(callback) { callback = callback || function() {}; var that = this; return this.get("setup", {}, function(err, response) { if (err) { callback(err); } else { callback(null, r...
javascript
{ "resource": "" }
q28757
train
function(props) { var entityNamespace = utils.namespaceFromProperties(props); return new root.View(this.service, props.name, entityNamespace); }
javascript
{ "resource": "" }
q28758
train
function(service, name, namespace) { this.name = name; this._super(service, this.path(), namespace); this.submitEvent = utils.bind(this, this.submitEvent); }
javascript
{ "resource": "" }
q28759
train
function(event, params, callback) { if (!callback && utils.isFunction(params)) { callback = params; params = {}; } callback = callback || function() {}; params = params || {}; // Add the index name ...
javascript
{ "resource": "" }
q28760
train
function(props) { var entityNamespace = utils.namespaceFromProperties(props); return new root.Index(this.service, props.name, entityNamespace); }
javascript
{ "resource": "" }
q28761
train
function(name, params, callback) { // If someone called us with the default style of (params, callback), // lets make it work if (utils.isObject(name) && utils.isFunction(params) && !callback) { callback = params; params = name; name = ...
javascript
{ "resource": "" }
q28762
train
function(service, file, name, namespace) { this.name = name; this.file = file; this._super(service, this.path(), namespace); }
javascript
{ "resource": "" }
q28763
train
function(props) { var entityNamespace = utils.namespaceFromProperties(props); return new root.ConfigurationStanza(this.service, this.name, props.name, entityNamespace); }
javascript
{ "resource": "" }
q28764
train
function(stanzaName, values, callback) { // If someone called us with the default style of (params, callback), // lets make it work if (utils.isObject(stanzaName) && utils.isFunction(values) && !callback) { callback = values; values = stanzaName; ...
javascript
{ "resource": "" }
q28765
train
function(service, namespace) { if (!namespace || namespace.owner === "-" || namespace.app === "-") { throw new Error("Configurations requires a non-wildcard owner/app"); } this._super(service, this.path(), namespace); }
javascript
{ "resource": "" }
q28766
train
function(filename, callback) { // If someone called us with the default style of (params, callback), // lets make it work if (utils.isObject(filename)) { filename = filename["__conf"]; } callback = callback || function() {}; ...
javascript
{ "resource": "" }
q28767
train
function(service, sid, namespace) { this.name = sid; this._super(service, this.path(), namespace); this.sid = sid; // We perform the bindings so that every function works // properly when it is passed as a callback. this.cancel = utils.bi...
javascript
{ "resource": "" }
q28768
train
function(callback) { callback = callback || function() {}; var that = this; var req = this.post("control", {action: "enablepreview"}, function(err) { callback(err, that); }); return req; }
javascript
{ "resource": "" }
q28769
train
function(params, callback) { callback = callback || function() {}; params = params || {}; params.output_mode = params.output_mode || "json_rows"; var that = this; return this.get("events", params, function(err, response) { if (err...
javascript
{ "resource": "" }
q28770
train
function(value, callback) { callback = callback || function() {}; var that = this; var req = this.post("control", {action: "setpriority", priority: value}, function(err) { callback(err, that); }); return req; }
javascript
{ "resource": "" }
q28771
train
function(options, callbacks) { var period = options.period || 500; // ms if (utils.isFunction(callbacks)) { callbacks = { done: callbacks }; } var noCallbacksAfterReady = ( !call...
javascript
{ "resource": "" }
q28772
train
function(props) { var sid = props.content.sid; var entityNamespace = utils.namespaceFromProperties(props); return new root.Job(this.service, sid, entityNamespace); }
javascript
{ "resource": "" }
q28773
train
function(query, params, callback) { // If someone called us with the default style of (params, callback), // lets make it work if (utils.isObject(query) && utils.isFunction(params) && !callback) { callback = params; params = query; quer...
javascript
{ "resource": "" }
q28774
train
function(props) { props = props || {}; props.owner = props.owner || ""; this.name = props.fieldName; this.displayName = props.displayName; this.type = props.type; this.multivalued = props.multivalue; this.requ...
javascript
{ "resource": "" }
q28775
train
function(props) { props = props || {}; props.owner = props.owner || ""; this.query = props.search; this.lineage = props.owner.split("."); this.owner = this.lineage[this.lineage.length - 1]; }
javascript
{ "resource": "" }
q28776
train
function(props) { props = props || {}; props.owner = props.owner || ""; this.id = props.calculationID; this.type = props.calculationType; this.comment = props.comment || null; this.editable = props.editable; ...
javascript
{ "resource": "" }
q28777
train
function(service, props) { this.service = service; this.search = props.search; this.drilldownSearch = props.drilldown_search; this.prettyQuery = this.openInSearch = props.open_in_search; this.pivotSearch = props.pivot_search; this.tstatsSearch = pr...
javascript
{ "resource": "" }
q28778
train
function(args, callback) { if (utils.isUndefined(callback)) { callback = args; args = {}; } if (!args || Object.keys(args).length === 0) { args = {}; } // If tstats is undefined, use pivotSearch (try to run an a...
javascript
{ "resource": "" }
q28779
train
function(dataModelObject) { this.dataModelObject = dataModelObject; this.columns = []; this.rows = []; this.filters = []; this.cells = []; this.accelerationNamespace = dataModelObject.dataModel.isAccelerated() ? dataModelObject.da...
javascript
{ "resource": "" }
q28780
train
function(sid) { // If a search object is passed in, get its sid if (sid && sid instanceof Service.Job) { sid = sid.sid; } if (!sid) { throw new Error("Sid to use for acceleration must not be null."); } ...
javascript
{ "resource": "" }
q28781
train
function(fieldName, sortAttribute, sortDirection, limit, statsFunction) { if (!this.dataModelObject.hasField(fieldName)) { throw new Error("Cannot add limit filter on a nonexistent field."); } var f = this.dataModelObject.fieldByName(fieldName); if (!uti...
javascript
{ "resource": "" }
q28782
train
function(fieldName, label) { if (!this.dataModelObject.hasField(fieldName)) { throw new Error("Did not find field " + fieldName); } var f = this.dataModelObject.fieldByName(fieldName); if (!utils.contains(["number", "string"], f.type)) { th...
javascript
{ "resource": "" }
q28783
train
function(field, label, ranges) { if (!this.dataModelObject.hasField(field)) { throw new Error("Did not find field " + field); } var f = this.dataModelObject.fieldByName(field); if ("number" !== f.type) { throw new Error("Field was of type "...
javascript
{ "resource": "" }
q28784
train
function(field, label, trueDisplayValue, falseDisplayValue) { if (!this.dataModelObject.fieldByName(field)) { throw new Error("Did not find field " + field); } var f = this.dataModelObject.fieldByName(field); if ("boolean" !== f.type) { thr...
javascript
{ "resource": "" }
q28785
train
function(fieldName) { if (!this.dataModelObject.hasField(fieldName)) { throw new Error("Did not find field " + fieldName); } var f = this.dataModelObject.fieldByName(fieldName); if (!utils.contains(["number", "string"], f.type)) { throw new...
javascript
{ "resource": "" }
q28786
train
function(fieldName, ranges) { if (!this.dataModelObject.hasField(fieldName)) { throw new Error("Did not find field " + fieldName); } var f = this.dataModelObject.fieldByName(fieldName); if ("number" !== f.type) { throw new Error("Field was ...
javascript
{ "resource": "" }
q28787
train
function(fieldName, trueDisplayValue, falseDisplayValue) { if (!this.dataModelObject.fieldByName(fieldName)) { throw new Error("Did not find field " + fieldName); } var f = this.dataModelObject.fieldByName(fieldName); if ("boolean" !== f.type) { ...
javascript
{ "resource": "" }
q28788
train
function(field, binning) { if (!this.dataModelObject.hasField(field)) { throw new Error("Did not find field " + field); } var f = this.dataModelObject.fieldByName(field); if ("timestamp" !== f.type) { throw new Error("Field was of type " + ...
javascript
{ "resource": "" }
q28789
train
function(fieldName, label, statsFunction) { if (!this.dataModelObject.hasField(fieldName)) { throw new Error("Did not find field " + fieldName); } var f = this.dataModelObject.fieldByName(fieldName); if (utils.contains(["string", "ipv4"], f.type) && ...
javascript
{ "resource": "" }
q28790
train
function() { return { dataModel: this.dataModelObject.dataModel.name, baseClass: this.dataModelObject.name, rows: this.rows, columns: this.columns, cells: this.cells, filters: this.filters }; ...
javascript
{ "resource": "" }
q28791
train
function(callback) { var svc = this.dataModelObject.dataModel.service; var args = { pivot_json: JSON.stringify(this.toJsonObject()) }; if (!utils.isUndefined(this.accelerationNamespace)) { args.namespace = this.accelerationNamespace; ...
javascript
{ "resource": "" }
q28792
train
function(props, parentDataModel) { props = props || {}; props.owner = props.owner || ""; this.dataModel = parentDataModel; this.name = props.objectName; this.displayName = props.displayName; this.parentNam...
javascript
{ "resource": "" }
q28793
train
function() { // merge fields and calculatedFields() var combinedFields = []; for (var f in this.fields) { if (this.fields.hasOwnProperty(f)) { combinedFields[f] = this.fields[f]; } } var calculatedFields = ...
javascript
{ "resource": "" }
q28794
train
function(){ var fields = {}; // Iterate over the calculations, get their fields var keys = this.calculationIDs(); var calculations = this.calculations; for (var i = 0; i < keys.length; i++) { var calculation = calculations[keys[i]]; ...
javascript
{ "resource": "" }
q28795
train
function(earliestTime, callback) { // If earliestTime parameter is not specified, then set callback to its value if (!callback && utils.isFunction(earliestTime)) { callback = earliestTime; earliestTime = undefined; } var query = "| datamod...
javascript
{ "resource": "" }
q28796
train
function(params, querySuffix, callback) { var query = "| datamodel " + this.dataModel.name + " " + this.name + " search"; // Prepend a space to the querySuffix, or set it to an empty string if null or undefined querySuffix = (querySuffix) ? (" " + querySuffix) : (""); thi...
javascript
{ "resource": "" }
q28797
train
function(name) { for (var i = 0; i < this.objects.length; i++) { if (this.objects[i].name === name) { return this.objects[i]; } } return null; }
javascript
{ "resource": "" }
q28798
train
function(props, callback) { if (utils.isUndefined(callback)) { callback = props; props = {}; } callback = callback || function() {}; if (!props) { callback(new Error("Must specify a props argument to update a data model."))...
javascript
{ "resource": "" }
q28799
train
function(service, namespace) { namespace = namespace || {}; this._super(service, this.path(), namespace); this.create = utils.bind(this, this.create); }
javascript
{ "resource": "" }