Commit cb9a53d24dd48e663beb0678b717d43847be79f8

Fix each Mouchak type having all attributes

  Each Mouchak type was inheriting attribute of all other Mouchak types. Fix
that. It had to with the underscore _.extend method. I did not know it copied
the resultant object to the first argument to it. Which was causing the
BaseType itself to have all the attributes of all models.
  
1111 });
1212
1313 var Text = BaseType.extend({
14 defaults: _.extend(BaseType.prototype.defaults, {
14 defaults: _.extend({
1515 data: "",
16 }),
16 }, BaseType.prototype.defaults),
1717 initialize: function() {
1818 BaseType.prototype.initialize.call(this, arguments);
1919 }
2020 });
2121
2222 var Table = BaseType.extend({
23 defaults: _.extend(BaseType.prototype.defaults, {
23 defaults: _.extend({
2424 data : {
2525 th: [],
2626 tr:[]
2727 }
28 }),
28 }, BaseType.prototype.defaults),
2929 initialize: function() {
3030 BaseType.prototype.initialize.call(this, arguments);
3131 }
3232 });
3333
3434 var Image = BaseType.extend({
35 defaults: _.extend(BaseType.prototype.defaults, {
35 defaults: _.extend({
3636 src: ""
37 }),
37 }, BaseType.prototype.defaults),
3838 initialize:function() {
3939 BaseType.prototype.initialize.call(this, arguments);
4040 }
4141 });
4242
4343 var Video = BaseType.extend({
44 defaults: _.extend(BaseType.prototype.defaults, {
44 defaults: _.extend({
4545 src: ""
46 }),
46 }, BaseType.prototype.defaults),
4747 initialize:function() {
4848 BaseType.prototype.initialize.call(this, arguments);
4949 }
5050 });
5151
5252 var RSS = BaseType.extend({
53 defaults: _.extend(BaseType.prototype.defaults, {
53 defaults: _.extend({
5454 src: ""
55 }),
55 }, BaseType.prototype.defaults),
5656 initialize:function() {
5757 BaseType.prototype.initialize.call(this, arguments);
5858 }
6060
6161 // Map model
6262 var Map = BaseType.extend({
63 defaults: _.extend(BaseType.prototype.defaults, {
63 defaults: _.extend({
6464 tileLayer:"",
6565 shp: ""
66 }),
66 }, BaseType.prototype.defaults),
6767 initialize: function(){
6868 BaseType.prototype.initialize.call(this, arguments);
6969 }
7474 // Also the website can be styled by using external CSS files,
7575 // which can also be loaded via this plugin model.
7676 var Plugin = BaseType.extend({
77 defaults: _.extend(BaseType.prototype.defaults, {
77 defaults: _.extend({
7878 src: "",
7979 data: {},
8080 callback: ""
81 }),
81 }, BaseType.prototype.defaults),
8282 initialize: function() {
8383 BaseType.prototype.initialize.call(this, arguments);
8484