UNPKG

906 BJavaScriptView Raw
1// Generated by CoffeeScript 1.6.2
2(function() {
3 var Component, Composed, Subcomponent,
4 __hasProp = {}.hasOwnProperty,
5 __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; };
6
7 Composed = require('./Composed');
8
9 Subcomponent = require('./Subcomponent');
10
11 Component = (function(_super) {
12 __extends(Component, _super);
13
14 function Component(raw) {
15 this.raw = raw;
16 this.assign(Subcomponent);
17 return;
18 }
19
20 Component.prototype.delimiter = '&';
21
22 Component.prototype.getSubcomponent = function(index) {
23 return this.getPart(index);
24 };
25
26 return Component;
27
28 })(Composed);
29
30 module.exports = Component;
31
32}).call(this);