src/js/data.js
branchpopcorn-port
changeset 184 a4be54204b71
parent 174 7a6450d251fc
child 238 6008172a0592
child 247 69bc26f879e6
equal deleted inserted replaced
183:d471599e1b2c 184:a4be54204b71
    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 };