Changeset 2945


Ignore:
Timestamp:
01/19/09 15:49:21 (6 years ago)
Author:
fredck
Message:

Syntax simplification (use the "this._" trick only when needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/branches/prototype/_source/core/htmlparser.js

    r2922 r2945  
    1111CKEDITOR.htmlParser = function() 
    1212{ 
    13         ( this._ || ( this._ = {} ) ).htmlPartsRegex = 
    14                 new RegExp('<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^"\'>]+)|(?:"[^"]*")|(?:\'[^\']*\'))*)\\/?>))', 'g'); 
     13        this._ = 
     14        { 
     15                htmlPartsRegex : new RegExp( '<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^"\'>]+)|(?:"[^"]*")|(?:\'[^\']*\'))*)\\/?>))', 'g' ) 
     16        }; 
    1517}; 
    1618 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy