Changeset 531
- Timestamp:
- 09/06/08 14:24:20 (3 months ago)
- Files:
-
- trunk/src/wymeditor/jquery.wymeditor.js (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/wymeditor/jquery.wymeditor.js
r530 r531 2375 2375 return false; 2376 2376 } 2377 return t his._tags[tag] != undefined;2377 return typeof this._tags[tag] != 'undefined'; 2378 2378 }, 2379 2379 getPossibleTagAttributes : function(tag) … … 2623 2623 { 2624 2624 var mode = mode || "accept"; 2625 if (t his._regexes[mode] == undefined) {2625 if (typeof this._regexes[mode] == 'undefined') { 2626 2626 this._regexes[mode] = new WYMeditor.ParallelRegex(this._case); 2627 2627 } 2628 2628 this._regexes[mode].addPattern(pattern); 2629 if (t his._mode_handlers[mode] == undefined) {2629 if (typeof this._mode_handlers[mode] == 'undefined') { 2630 2630 this._mode_handlers[mode] = mode; 2631 2631 } … … 2647 2647 WYMeditor.Lexer.prototype.addEntryPattern = function(pattern, mode, new_mode) 2648 2648 { 2649 if (t his._regexes[mode] == undefined) {2649 if (typeof this._regexes[mode] == 'undefined') { 2650 2650 this._regexes[mode] = new WYMeditor.ParallelRegex(this._case); 2651 2651 } 2652 2652 this._regexes[mode].addPattern(pattern, new_mode); 2653 if (t his._mode_handlers[new_mode] == undefined) {2653 if (typeof this._mode_handlers[new_mode] == 'undefined') { 2654 2654 this._mode_handlers[new_mode] = new_mode; 2655 2655 } … … 2666 2666 WYMeditor.Lexer.prototype.addExitPattern = function(pattern, mode) 2667 2667 { 2668 if (t his._regexes[mode] == undefined) {2668 if (typeof this._regexes[mode] == 'undefined') { 2669 2669 this._regexes[mode] = new WYMeditor.ParallelRegex(this._case); 2670 2670 } 2671 2671 this._regexes[mode].addPattern(pattern, "__exit"); 2672 if (t his._mode_handlers[mode] == undefined) {2672 if (typeof this._mode_handlers[mode] == 'undefined') { 2673 2673 this._mode_handlers[mode] = mode; 2674 2674 } … … 2689 2689 WYMeditor.Lexer.prototype.addSpecialPattern = function(pattern, mode, special) 2690 2690 { 2691 if (t his._regexes[mode] == undefined) {2691 if (typeof this._regexes[mode] == 'undefined') { 2692 2692 this._regexes[mode] = new WYMeditor.ParallelRegex(this._case); 2693 2693 } 2694 2694 this._regexes[mode].addPattern(pattern, '_'+special); 2695 if (t his._mode_handlers[special] == undefined) {2695 if (typeof this._mode_handlers[special] == 'undefined') { 2696 2696 this._mode_handlers[special] = special; 2697 2697 } … … 2721 2721 WYMeditor.Lexer.prototype.parse = function(raw) 2722 2722 { 2723 if (t his._parser == undefined) {2723 if (typeof this._parser == 'undefined') { 2724 2724 return false; 2725 2725 } … … 3525 3525 WYMeditor.WymCssLexer = function(parser, only_wym_blocks) 3526 3526 { 3527 var only_wym_blocks = ( only_wym_blocks == undefined? true : only_wym_blocks);3527 var only_wym_blocks = (typeof only_wym_blocks == 'undefined' ? true : only_wym_blocks); 3528 3528 3529 3529 jQuery.extend(this, new WYMeditor.Lexer(parser, (only_wym_blocks?'Ignore':'WymCss'))); … … 3561 3561 WYMeditor.WymCssParser.prototype.parse = function(raw, only_wym_blocks) 3562 3562 { 3563 var only_wym_blocks = ( only_wym_blocks == undefined? this.only_wym_blocks : only_wym_blocks);3563 var only_wym_blocks = (typeof only_wym_blocks == 'undefined' ? this.only_wym_blocks : only_wym_blocks); 3564 3564 this._Lexer = new WYMeditor.WymCssLexer(this, only_wym_blocks); 3565 3565 this._Lexer.parse(raw);