src/js/modules.js
author veltr
Mon, 23 Apr 2012 19:11:08 +0200
branchnew-model
changeset 875 43629caa77bc
parent 866 3bf7aa8216e5
permissions -rw-r--r--
Big refactoring of widget files + started migration of segmentwidget
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
461
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     1
/* modules are non-graphical entities, similar to widgets */
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     2
866
3bf7aa8216e5 IriSP.Model.List now inherits from Array
veltr
parents: 461
diff changeset
     3
// TODO: Unify widgets and modules
3bf7aa8216e5 IriSP.Model.List now inherits from Array
veltr
parents: 461
diff changeset
     4
461
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     5
IriSP.Module = function(Popcorn, config, Serializer) {
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     6
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     7
  if (config === undefined || config === null) {
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     8
    config = {}
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     9
  }
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
    10
  
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
    11
  this._Popcorn = Popcorn;
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
    12
  this._config = config;  
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
    13
  this._serializer = Serializer;
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
    14
};