Sfoglia il codice sorgente

Rename create() to render()

... semantic is useful :)
@soyjavi 14 anni fa
parent
commit
ba6ea08121

+ 1 - 1
src/view/Lungo.View.Template.Binding.js

@@ -89,4 +89,4 @@ LUNGO.View.Template.Binding = (function(lng, undefined) {
         dataAttribute: dataAttribute
     };
 
-})(LUNGO);
+})(LUNGO);

+ 1 - 1
src/view/Lungo.View.Template.List.js

@@ -67,7 +67,7 @@ LUNGO.View.Template.List = (function(lng, undefined) {
     };
 
     var _render = function() {
-        lng.View.Template.Binding.create(_config.container_id, _config.template_id, _config.data);
+        lng.View.Template.render(_config.container_id, _config.template_id, _config.data);
     };
 
     var _createScroll = function() {

+ 2 - 2
src/view/Lungo.View.Template.js

@@ -58,7 +58,7 @@ LUNGO.View.Template = (function(lng, undefined) {
      * @param {Object} Data for binding
      * @param {Function} Callback when the process is complete
      */
-    var binding = function(container_id, template_id, data, callback) {
+    var render = function(container_id, template_id, data, callback) {
         lng.View.Template.Binding.create(container_id, template_id, data, callback);
     };
 
@@ -66,7 +66,7 @@ LUNGO.View.Template = (function(lng, undefined) {
         create: create,
         exists: exists,
         get: get,
-        binding: binding
+        render: render
     };
 
 })(LUNGO);