src/js/modules.js
author cavaliet
Fri, 11 May 2012 13:48:06 +0200
changeset 891 a8896023a6f4
parent 461 a9c5eeca190c
child 866 3bf7aa8216e5
permissions -rw-r--r--
Merge with 122fc46d7d4acad1126e8a4b67fcf9ea0cd268d0
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
};