IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
12 | 12 | { |
13 | 13 | base : CKEDITOR.dom.node, |
14 | 14 | |
15 | | $ : function( text, ownerDocument ) |
| 15 | /** |
| 16 | * The comment node type. |
| 17 | * {@link CKEDITOR.NODE_COMMENT}. |
| 18 | * @type Number |
| 19 | * @example |
| 20 | */ |
| 21 | type : CKEDITOR.NODE_COMMENT, |
| 22 | |
| 23 | $ : function( comment, ownerDocument ) |
16 | 24 | { |
17 | | if ( typeof text == 'string' ) |
18 | | text = ( ownerDocument ? ownerDocument.$ : document ).createComment( text ); |
| 25 | if ( typeof comment == 'string' ) |
| 26 | comment = ( ownerDocument ? ownerDocument.$ : document ).createComment( comment ); |
19 | 27 | |
20 | | this.base( text ); |
| 28 | // Call the base constructor (we must not call CKEDITOR.dom.node). |
| 29 | CKEDITOR.dom.domObject.call( this, comment ); |
21 | 30 | }, |
22 | 31 | |
23 | 32 | proto : |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
23 | 23 | { |
24 | 24 | if ( domNode ) |
25 | 25 | { |
26 | | switch ( domNode.nodeType ) |
27 | | { |
28 | | // Safari don't consider document as element node type. (#3389) |
29 | | case CKEDITOR.NODE_DOCUMENT : |
30 | | return new CKEDITOR.dom.document( domNode ); |
| 26 | var constructor = domNode.nodeType == CKEDITOR.NODE_DOCUMENT ? 'document' |
| 27 | : domNode.nodeType == CKEDITOR.NODE_ELEMENT ? 'element' |
| 28 | : domNode.nodeType == CKEDITOR.NODE_TEXT ? 'text' |
| 29 | : domNode.nodeType == CKEDITOR.NODE_COMMENT ? 'comment' |
| 30 | : 'domObject'; // Call the base constructor otherwise. |
31 | 31 | |
32 | | case CKEDITOR.NODE_ELEMENT : |
33 | | return new CKEDITOR.dom.element( domNode ); |
34 | | |
35 | | case CKEDITOR.NODE_TEXT : |
36 | | return new CKEDITOR.dom.text( domNode ); |
37 | | } |
38 | | |
39 | | // Call the base constructor. |
40 | | CKEDITOR.dom.domObject.call( this, domNode ); |
| 32 | return new CKEDITOR.dom[ constructor ]( domNode ); |
41 | 33 | } |
42 | 34 | |
43 | 35 | return this; |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
1014 | 1014 | // whitespaces at the end. |
1015 | 1015 | isWhiteSpace = false; |
1016 | 1016 | |
1017 | | if ( sibling.type == CKEDITOR.NODE_TEXT ) |
| 1017 | if ( sibling.type == CKEDITOR.NODE_COMMENT ) |
| 1018 | { |
| 1019 | sibling = sibling.getPrevious(); |
| 1020 | continue; |
| 1021 | } |
| 1022 | else if ( sibling.type == CKEDITOR.NODE_TEXT ) |
1018 | 1023 | { |
1019 | 1024 | siblingText = sibling.getText(); |
1020 | 1025 | |