Changeset 2126294
- Timestamp:
- 07/21/2019 03:34:02 PM (7 years ago)
- Location:
- easycoder/trunk
- Files:
-
- 3 edited
-
easycoder.php (modified) (2 diffs)
-
plugins/browser.js (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
easycoder/trunk/easycoder.php
r2118094 r2126294 4 4 * Plugin URI: https://easycoder.software 5 5 * Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript. 6 * Version: 2.4. 36 * Version: 2.4.4 7 7 * Author: EasyCoder Software 8 8 * Author URI: https://easycoder.software … … 17 17 function easycoder_enqueue_script() { 18 18 wp_enqueue_script('easycoder_script', plugin_dir_url( __FILE__ ) 19 . 'easycoder-min.js', array(), '2.4. 3');19 . 'easycoder-min.js', array(), '2.4.4'); 20 20 } 21 21 -
easycoder/trunk/plugins/browser.js
r2118094 r2126294 77 77 if (compiler.tokenIs(`to`)) { 78 78 const cssId = compiler.getNextValue(); 79 let onError = 0; 80 if (compiler.tokenIs(`or`)) { 81 compiler.next(); 82 onError = compiler.getPc() + 1; 83 compiler.completeHandler(); 84 } 79 85 compiler.addCommand({ 80 86 domain: `browser`, … … 83 89 type: symbol.keyword, 84 90 symbol: symbol.name, 85 cssId 91 cssId, 92 onError 86 93 }); 87 94 return true; … … 102 109 const element = document.getElementById(content); 103 110 if (!element) { 104 program.runtimeError(command.lino, `No such element: '${content}'`); 111 if (command.onError) { 112 program.run(command.onError); 113 } else { 114 program.runtimeError(command.lino, `No such element: '${content}'`); 115 } 105 116 return 0; 106 117 } -
easycoder/trunk/readme.txt
r2118094 r2126294 53 53 54 54 == Changelog == 55 56 = 2.4.4 21-jul-2019 = 57 * Add 'or' clause to 'attach' 55 58 56 59 = 2.4.3 5-jul-2019 =
Note: See TracChangeset
for help on using the changeset viewer.