40 lines
1006 B
JavaScript
40 lines
1006 B
JavaScript
var Box, Column, ColumnView,
|
|
extend = 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; },
|
|
hasProp = {}.hasOwnProperty;
|
|
|
|
Box = require("./box");
|
|
|
|
ColumnView = (function(superClass) {
|
|
extend(ColumnView, superClass);
|
|
|
|
function ColumnView() {
|
|
return ColumnView.__super__.constructor.apply(this, arguments);
|
|
}
|
|
|
|
ColumnView.prototype.className = "bk-grid-column";
|
|
|
|
return ColumnView;
|
|
|
|
})(Box.View);
|
|
|
|
Column = (function(superClass) {
|
|
extend(Column, superClass);
|
|
|
|
Column.prototype.type = 'Column';
|
|
|
|
Column.prototype.default_view = ColumnView;
|
|
|
|
function Column(attrs, options) {
|
|
Column.__super__.constructor.call(this, attrs, options);
|
|
this._horizontal = false;
|
|
}
|
|
|
|
return Column;
|
|
|
|
})(Box.Model);
|
|
|
|
module.exports = {
|
|
View: ColumnView,
|
|
Model: Column
|
|
};
|