Need to bind the module to this and not create new instance model
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 21 Jan 2013 15:33:32 +0100
branchmodel
changeset 50846fc57ff6553
parent 507 321c384513f1
child 509 ff9e65d1748b
Need to bind the module to this and not create new instance
javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/PageProcessor.java
     1.1 --- a/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/PageProcessor.java	Mon Jan 21 15:32:53 2013 +0100
     1.2 +++ b/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/PageProcessor.java	Mon Jan 21 15:33:32 2013 +0100
     1.3 @@ -116,7 +116,7 @@
     1.4                      if (!propsGetSet.isEmpty()) {
     1.5                          w.write("public " + className + " applyBindings() {\n");
     1.6                          w.write("  ko = org.apidesign.bck2brwsr.htmlpage.Knockout.applyBindings(");
     1.7 -                        w.write(className + ".class, new " + className + "(), ");
     1.8 +                        w.write(className + ".class, this, ");
     1.9                          w.write("new String[] {\n");
    1.10                          String sep = "";
    1.11                          for (String n : propsGetSet) {