Author: jmorliaguet
Date: Sat Feb 11 13:53:39 2006
New Revision: 2347

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

- reverting. the error comes from the fact that the main data structure gets
  modified during the parsing phase.



Modified: cpsskins/branches/jmo-perspectives/ui/framework/ctal.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/ctal.js     (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/ctal.js     Sat Feb 11 
13:53:39 2006
@@ -223,15 +223,8 @@
 }
 
 ctal.get_nameexpr = function(value) {
-  var splitnx = value.split(/ /);
-  var first = "";
-  // ltrim
-  while (first == "") {
-    first = splitnx.shift();
-  }
-  return [first, splitnx.join(" ")];
-  //var splitnx = ctal.trim(value).split(/ /);
-  //return [ctal.trim(splitnx[0]), ctal.trim(splitnx.slice(1).join(' '))];
+  var splitnx = ctal.trim(value).split(/ /);
+  return [ctal.trim(splitnx[0]), ctal.trim(splitnx.slice(1).join(' '))];
 }
 
 ctal.trim = function(text) {
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to