From de9b09d67ec24871cca05a91ca77a255f836d3e3 Mon Sep 17 00:00:00 2001 From: fukudayasuo Date: Mon, 10 Jun 2013 17:21:21 +0900 Subject: [PATCH] =?UTF-8?q?#223=20=E5=AF=BE=E5=BF=9C=E3=81=97=E3=81=BE?= =?UTF-8?q?=E3=81=97=E3=81=9F=E3=80=82=E3=83=86=E3=82=B9=E3=83=88=E6=9C=AA?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hifive/src/main/webapp/src/h5.core.controller.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hifive/src/main/webapp/src/h5.core.controller.js b/hifive/src/main/webapp/src/h5.core.controller.js index 99cecda7..5e1fae94 100644 --- a/hifive/src/main/webapp/src/h5.core.controller.js +++ b/hifive/src/main/webapp/src/h5.core.controller.js @@ -2064,6 +2064,7 @@ * @param {String|Element|jQuery} element DOM要素(セレクタ文字列, DOM要素, jQueryオブジェクト) * @param {String} templateId テンプレートID * @param {Object} [param] パラメータ(オブジェクトリテラルで指定) + * @returns {Object} テンプレートが適用されたDOM要素(jQueryオブジェクト) * @function * @name update * @memberOf Controller.view @@ -2071,7 +2072,7 @@ */ update: function(element, templateId, param) { var target = getTarget(element, this.__controller.rootElement, true); - getView(templateId, this.__controller).update(target, templateId, param); + return getView(templateId, this.__controller).update(target, templateId, param); }, /** @@ -2080,6 +2081,7 @@ * @param {String|Element|jQuery} element DOM要素(セレクタ文字列, DOM要素, jQueryオブジェクト) * @param {String} templateId テンプレートID * @param {Object} [param] パラメータ(オブジェクトリテラルで指定) + * @returns {Object} テンプレートが適用されたDOM要素(jQueryオブジェクト) * @function * @name append * @memberOf Controller.view @@ -2087,7 +2089,7 @@ */ append: function(element, templateId, param) { var target = getTarget(element, this.__controller.rootElement, true); - getView(templateId, this.__controller).append(target, templateId, param); + return getView(templateId, this.__controller).append(target, templateId, param); }, /** @@ -2096,6 +2098,7 @@ * @param {String|Element|jQuery} element DOM要素(セレクタ文字列, DOM要素, jQueryオブジェクト) * @param {String} templateId テンプレートID * @param {Object} [param] パラメータ(オブジェクトリテラルで指定) + * @returns {Object} テンプレートが適用されたDOM要素(jQueryオブジェクト) * @function * @name prepend * @memberOf Controller.view @@ -2103,7 +2106,7 @@ */ prepend: function(element, templateId, param) { var target = getTarget(element, this.__controller.rootElement, true); - getView(templateId, this.__controller).prepend(target, templateId, param); + return getView(templateId, this.__controller).prepend(target, templateId, param); }, /**