src/js/modules.js
author veltr
Thu, 08 Mar 2012 18:38:46 +0100
branchpopcorn-port
changeset 830 18ca612e9ff0
parent 461 a9c5eeca190c
child 866 3bf7aa8216e5
permissions -rw-r--r--
Lots of changes
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
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     3
IriSP.Module = function(Popcorn, config, Serializer) {
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     4
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     5
  if (config === undefined || config === null) {
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     6
    config = {}
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     7
  }
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     8
  
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
     9
  this._Popcorn = Popcorn;
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
    10
  this._config = config;  
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
    11
  this._serializer = Serializer;
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents:
diff changeset
    12
};