Commit cb9a53d24dd48e663beb0678b717d43847be79f8
- Diff rendering mode:
- inline
- side by side
mouchak/static/js/models.js
(14 / 14)
  | |||
11 | 11 | }); | |
12 | 12 | ||
13 | 13 | var Text = BaseType.extend({ | |
14 | defaults: _.extend(BaseType.prototype.defaults, { | ||
14 | defaults: _.extend({ | ||
15 | 15 | data: "", | |
16 | }), | ||
16 | }, BaseType.prototype.defaults), | ||
17 | 17 | initialize: function() { | |
18 | 18 | BaseType.prototype.initialize.call(this, arguments); | |
19 | 19 | } | |
20 | 20 | }); | |
21 | 21 | ||
22 | 22 | var Table = BaseType.extend({ | |
23 | defaults: _.extend(BaseType.prototype.defaults, { | ||
23 | defaults: _.extend({ | ||
24 | 24 | data : { | |
25 | 25 | th: [], | |
26 | 26 | tr:[] | |
27 | 27 | } | |
28 | }), | ||
28 | }, BaseType.prototype.defaults), | ||
29 | 29 | initialize: function() { | |
30 | 30 | BaseType.prototype.initialize.call(this, arguments); | |
31 | 31 | } | |
32 | 32 | }); | |
33 | 33 | ||
34 | 34 | var Image = BaseType.extend({ | |
35 | defaults: _.extend(BaseType.prototype.defaults, { | ||
35 | defaults: _.extend({ | ||
36 | 36 | src: "" | |
37 | }), | ||
37 | }, BaseType.prototype.defaults), | ||
38 | 38 | initialize:function() { | |
39 | 39 | BaseType.prototype.initialize.call(this, arguments); | |
40 | 40 | } | |
41 | 41 | }); | |
42 | 42 | ||
43 | 43 | var Video = BaseType.extend({ | |
44 | defaults: _.extend(BaseType.prototype.defaults, { | ||
44 | defaults: _.extend({ | ||
45 | 45 | src: "" | |
46 | }), | ||
46 | }, BaseType.prototype.defaults), | ||
47 | 47 | initialize:function() { | |
48 | 48 | BaseType.prototype.initialize.call(this, arguments); | |
49 | 49 | } | |
50 | 50 | }); | |
51 | 51 | ||
52 | 52 | var RSS = BaseType.extend({ | |
53 | defaults: _.extend(BaseType.prototype.defaults, { | ||
53 | defaults: _.extend({ | ||
54 | 54 | src: "" | |
55 | }), | ||
55 | }, BaseType.prototype.defaults), | ||
56 | 56 | initialize:function() { | |
57 | 57 | BaseType.prototype.initialize.call(this, arguments); | |
58 | 58 | } | |
… | … | ||
60 | 60 | ||
61 | 61 | // Map model | |
62 | 62 | var Map = BaseType.extend({ | |
63 | defaults: _.extend(BaseType.prototype.defaults, { | ||
63 | defaults: _.extend({ | ||
64 | 64 | tileLayer:"", | |
65 | 65 | shp: "" | |
66 | }), | ||
66 | }, BaseType.prototype.defaults), | ||
67 | 67 | initialize: function(){ | |
68 | 68 | BaseType.prototype.initialize.call(this, arguments); | |
69 | 69 | } | |
… | … | ||
74 | 74 | // Also the website can be styled by using external CSS files, | |
75 | 75 | // which can also be loaded via this plugin model. | |
76 | 76 | var Plugin = BaseType.extend({ | |
77 | defaults: _.extend(BaseType.prototype.defaults, { | ||
77 | defaults: _.extend({ | ||
78 | 78 | src: "", | |
79 | 79 | data: {}, | |
80 | 80 | callback: "" | |
81 | }), | ||
81 | }, BaseType.prototype.defaults), | ||
82 | 82 | initialize: function() { | |
83 | 83 | BaseType.prototype.initialize.call(this, arguments); | |
84 | 84 |