blob: 1c8788019241d4b69f8609bdb0c026c03ed4ca66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Generated by CoffeeScript 1.6.3
(function() {
var __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
define(['backbone', 'quality-gate/models/quality-gate'], function(Backbone, QualityGate) {
var QualityGates, _ref;
return QualityGates = (function(_super) {
__extends(QualityGates, _super);
function QualityGates() {
_ref = QualityGates.__super__.constructor.apply(this, arguments);
return _ref;
}
QualityGates.prototype.model = QualityGate;
QualityGates.prototype.url = function() {
return "" + baseUrl + "/api/qualitygates/list";
};
QualityGates.prototype.parse = function(r) {
return r.qualitygates.map(function(gate) {
return _.extend(gate, {
"default": gate.id === r["default"]
});
});
};
return QualityGates;
})(Backbone.Collection);
});
}).call(this);
|