some renames to the layout internal structures. popcorn-port
authorhamidouk
Fri, 21 Oct 2011 17:22:44 +0200
branchpopcorn-port
changeset 117 b0a699baf3f1
parent 116 3ca8dadf3eda
child 118 695e1086ddd2
some renames to the layout internal structures.
src/js/layout.js
unittests/tests/layout.js
--- a/src/js/layout.js	Fri Oct 21 14:07:07 2011 +0200
+++ b/src/js/layout.js	Fri Oct 21 17:22:44 2011 +0200
@@ -18,8 +18,8 @@
       console.error("The options parameter is undefined.");
     };
     
-    if (options.hasOwnProperty('divId')) {
-      this._div = options.divId;
+    if (options.hasOwnProperty('container')) {
+      this._div = options.container;
     }
 
     if (options.hasOwnProperty('width')) {
--- a/unittests/tests/layout.js	Fri Oct 21 14:07:07 2011 +0200
+++ b/unittests/tests/layout.js	Fri Oct 21 17:22:44 2011 +0200
@@ -17,7 +17,7 @@
   });
   
   test("test custom init of layout manager", function() {
-    var lay = new IriSP.LayoutManager({divId: "myDiv", width: 327, height: 542});
+    var lay = new IriSP.LayoutManager({container: "myDiv", width: 327, height: 542});
     equal(lay._div, "myDiv", "the default div is set correctly");
     equal(lay._width, 327, "the default width is set correctly");
     equal(lay._height, 542, "the default height is set correctly");