Procházet zdrojové kódy

Updated the qooxdoo wrapper to reflect the render method.

tags/0.5.2
wittemann před 14 roky
rodič
revize
7864e65efb
2 změnil soubory, kde provedl 6 přidání a 8 odebrání
  1. +1
    -1
      wrappers/qooxdoo/mustache.js.post
  2. +5
    -7
      wrappers/qooxdoo/mustache.js.pre

+ 1
- 1
wrappers/qooxdoo/mustache.js.post Zobrazit soubor

@@ -4,6 +4,6 @@


// EXPOSE qooxdoo variant // EXPOSE qooxdoo variant
qx.bom.Template.version = Mustache.version; qx.bom.Template.version = Mustache.version;
qx.bom.Template.toHtml = Mustache.render;
qx.bom.Template.render = Mustache.render;


})(); })();

+ 5
- 7
wrappers/qooxdoo/mustache.js.pre Zobrazit soubor

@@ -5,7 +5,7 @@
http://qooxdoo.org http://qooxdoo.org


Copyright: Copyright:
2004-2011 1&1 Internet AG, Germany, http://www.1und1.de
2004-2012 1&1 Internet AG, Germany, http://www.1und1.de


License: License:
LGPL: http://www.gnu.org/licenses/lgpl.html LGPL: http://www.gnu.org/licenses/lgpl.html
@@ -74,7 +74,7 @@
* For further details, please visit the mustache.js documentation here: * For further details, please visit the mustache.js documentation here:
* https://github.com/janl/mustache.js/blob/master/README.md * https://github.com/janl/mustache.js/blob/master/README.md
*/ */
qx.Class.define("qx.bom.Template", {
qx.Bootstrap.define("qx.bom.Template", {
statics : { statics : {
/** Contains the mustache.js version. */ /** Contains the mustache.js version. */
version: null, version: null,
@@ -83,19 +83,18 @@ qx.Class.define("qx.bom.Template", {
* Original and only template method of mustache.js. For further * Original and only template method of mustache.js. For further
* documentation, please visit https://github.com/janl/mustache.js * documentation, please visit https://github.com/janl/mustache.js
* *
* @signature function(template, view, partials, send_fun)
* @signature function(template, view, partials)
* @param template {String} The String containing the template. * @param template {String} The String containing the template.
* @param view {Object} The object holding the data to render. * @param view {Object} The object holding the data to render.
* @param partials {Object} Object holding parts of a template. * @param partials {Object} Object holding parts of a template.
* @param send_fun {Function?} Callback function for streaming.
* @return {String} The parsed template. * @return {String} The parsed template.
*/ */
toHtml: null,
render: null,




/** /**
* Helper method which provides you with a direct access to templates * Helper method which provides you with a direct access to templates
* stored as HTML in the DOM. The DOM node with the given ID will be reated
* stored as HTML in the DOM. The DOM node with the given ID will be used
* as a template, parsed and a new DOM node will be returned containing the * as a template, parsed and a new DOM node will be returned containing the
* parsed data. Keep in mind to have only one root DOM element in the the * parsed data. Keep in mind to have only one root DOM element in the the
* template. * template.
@@ -133,4 +132,3 @@ qx.Class.define("qx.bom.Template", {
* Below is the original mustache.js code. Snapshot date is mentioned in * Below is the original mustache.js code. Snapshot date is mentioned in
* the head of this file. * the head of this file.
*/ */

Načítá se…
Zrušit
Uložit