
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

var position = function(page_element_id) {

    "use strict";

    var page = document.getElementById(page_element_id);
    var isso = document.getElementById("isso-thread");

    var column = function() {
        page.style.margin-left = "5%";
        isso.style.position = "fixed";
        isso.style.left = "calc(" + page.offsetWidth + "px + 5%)";
    }

    var basic = function() {
        page.style.margin-left = "auto";
        isso.style.position = "static";
    }

    return {
        column: column,
        basic: basic
    };

};



@@ -202,27 +202,21 @@
 */%0A%0A
-var position = func
+function posi
 tion
@@ -372,20 +372,21 @@
 );%0A%0A    
-var 
+this.
 column =
@@ -555,20 +555,21 @@
  %7D%0A%0A    
-var 
+this.
 basic = 
@@ -666,81 +666,15 @@
 c%22;%0A
+
     %7D%0A%0A
-    return %7B%0A        column: column,%0A        basic: basic%0A    %7D;%0A%0A
 %7D;%0A%0A

transform position into object constructor