Changeset 6684 for CKEditor/trunk


Ignore:
Timestamp:
04/14/11 20:25:13 (4 years ago)
Author:
fredck
Message:

Minor performance enhancement to isBlockBoundary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/_source/core/dom/walker.js

    r6395 r6684  
    339339        CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames ) 
    340340        { 
    341                 var nodeNameMatches = CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$block, customNodeNames || {} ); 
     341                var nodeNameMatches = customNodeNames ? 
     342                        CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$block, customNodeNames || {} ) : 
     343                        CKEDITOR.dtd.$block; 
    342344 
    343345                // Don't consider floated formatting as block boundary, fall back to dtd check in that case. (#6297) 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy