Author: jmorliaguet
Date: Sat Feb 25 23:14:22 2006
New Revision: 2472

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
Log:

- private methods begin with _



Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Sat Feb 25 
23:14:22 2006
@@ -50,7 +50,7 @@
   _previousPerspective: "",
 
   init: function() {
-    CPSSkins.parse(document);
+    CPSSkins._parse(document);
   },
 
   getModelById: function(id) {
@@ -153,7 +153,7 @@
 
   /* Document parsing */
 
-  jsonParse: function(el) {
+  _jsonParse: function(el) {
     var res = null;
     var text = el.innerHTML;
     if (!text) return;
@@ -167,7 +167,7 @@
   },
 
   // first stage
-  parse: function(node) {
+  _parse: function(node) {
     var elements = $A(node.getElementsByTagName("ins"));
     var progress = {'initialized': 0};
     var length = elements.length;
@@ -176,7 +176,7 @@
     CPSSkins.registerEventHandler("initialized", progress, function(event) {
       progress.initialized += 1;
       if (progress.initialized >= length) {
-        CPSSkins.load(node);
+        CPSSkins._load(node);
         CPSSkins.unsubscribe("initialized");
       }
     });
@@ -204,22 +204,22 @@
   },
 
   // second stage
-  load: function(node) {
+  _load: function(node) {
     var elements = $A(node.getElementsByTagName("ins"));
     ["view", "controller", "model"].each(function(type) {
       elements.each(function(el, index) {
         if (Element.hasClassName(el, type)) {
-          CPSSkins.register(el, type, index);
+          CPSSkins._register(el, type, index);
         }
       });
     });
   },
 
-  register: function(el, classid, index) {
+  _register: function(el, classid, index) {
       // make the element identifiable
       var name = classid + index;
       el.setAttribute("name", name);
-      var def = CPSSkins.jsonParse(el);
+      var def = CPSSkins._jsonParse(el);
       def.name = name;
 
       switch(classid) {
@@ -1531,7 +1531,7 @@
       var widget = this.widget;
       var options = {
         onComplete: function() {
-          CPSSkins.load(widget);
+          CPSSkins._load(widget);
         }
       };
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to