Changeset 42403 for trunk/src/wp-admin/js/code-editor.js
- Timestamp:
- 12/15/2017 01:41:56 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/js/code-editor.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/code-editor.js
r41992 r42403 1 1 if ( 'undefined' === typeof window.wp ) { 2 /** 3 * @namespace wp 4 */ 2 5 window.wp = {}; 3 6 } 4 7 if ( 'undefined' === typeof window.wp.codeEditor ) { 8 /** 9 * @namespace wp.codeEditor 10 */ 5 11 window.wp.codeEditor = {}; 6 12 } … … 34 40 * @param {Function} settings.onChangeLintingErrors - Callback for when there are changes to linting errors. 35 41 * @param {Function} settings.onUpdateErrorNotice - Callback to update error notice. 42 * 36 43 * @returns {void} 37 44 */ … … 203 210 * @param {Function} settings.onTabNext - Callback to handle tabbing to the next tabbable element. 204 211 * @param {Function} settings.onTabPrevious - Callback to handle tabbing to the previous tabbable element. 212 * 205 213 * @returns {void} 206 214 */ … … 241 249 242 250 /** 243 * @typedef {object} CodeEditorInstance251 * @typedef {object} wp.codeEditor~CodeEditorInstance 244 252 * @property {object} settings - The code editor settings. 245 253 * @property {CodeMirror} codemirror - The CodeMirror instance. … … 261 269 * @param {object} [settings.htmlhint] - Rules for HTMLHint. 262 270 * @param {object} [settings.jshint] - Rules for JSHint. 271 * 263 272 * @returns {CodeEditorInstance} Instance. 264 273 */
Note: See TracChangeset
for help on using the changeset viewer.