equal
deleted
inserted
replaced
24 |
24 |
25 /* the base abstract "class" */ |
25 /* the base abstract "class" */ |
26 IriSP.Serializer = function(DataLoader, url) { |
26 IriSP.Serializer = function(DataLoader, url) { |
27 this._DataLoader = DataLoader; |
27 this._DataLoader = DataLoader; |
28 this._url = url; |
28 this._url = url; |
|
29 this._data = []; |
29 }; |
30 }; |
30 |
31 |
31 IriSP.Serializer.prototype.serialize = function(data) { }; |
32 IriSP.Serializer.prototype.serialize = function(data) { }; |
32 IriSP.Serializer.prototype.deserialize = function(data) {}; |
33 IriSP.Serializer.prototype.deserialize = function(data) {}; |
33 |
34 |
34 IriSP.Serializer.prototype.currentMedia = function() { |
35 IriSP.Serializer.prototype.currentMedia = function() { |
35 }; |
36 }; |
36 |
37 |
37 IriSP.Serializer.prototype.sync = function(callback) { |
38 IriSP.Serializer.prototype.sync = function(callback) { |
38 callback.apply(this, []); |
39 callback.call(this, this._data); |
39 }; |
40 }; |
40 |
41 |
41 IriSP.SerializerFactory = function(DataLoader) { |
42 IriSP.SerializerFactory = function(DataLoader) { |
42 this._dataloader = DataLoader; |
43 this._dataloader = DataLoader; |
43 }; |
44 }; |