Author: jmorliaguet Date: Thu Mar 2 20:28:15 2006 New Revision: 2513 Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Log:
- avoid parsing the node if there is nothing to be parsed 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 Thu Mar 2 20:28:15 2006 @@ -159,8 +159,11 @@ // first stage _parse: function(node) { var elements = $A(node.getElementsByTagName("ins")); - this._initialized[node] = 0; var length = elements.length; + if (!length) { + return; + } + this._initialized[node] = 0; var progress = new Object(); this.registerEventHandler("initialized", progress, function(event) { -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins