src/js/modules.js
author hamidouk
Mon, 19 Dec 2011 16:04:14 +0100
branchpopcorn-port
changeset 483 0bb36c79836c
parent 461 a9c5eeca190c
child 866 3bf7aa8216e5
permissions -rw-r--r--
fixed positioning bug.
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
};