some renames to the layout internal structures.
--- 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");