Skip to content

Commit

Permalink
hifive#223 対応しました。テスト未追加。
Browse files Browse the repository at this point in the history
  • Loading branch information
fukudayasuo committed Jun 10, 2013
1 parent dcfeca0 commit de9b09d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions hifive/src/main/webapp/src/h5.core.controller.js
Expand Up @@ -2064,14 +2064,15 @@
* @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
* @see View.update
*/
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);
},

/**
Expand All @@ -2080,14 +2081,15 @@
* @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
* @see View.append
*/
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);
},

/**
Expand All @@ -2096,14 +2098,15 @@
* @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
* @see View.prepend
*/
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);
},

/**
Expand Down

0 comments on commit de9b09d

Please sign in to comment.