github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/public/libs/vue-1.0.24/src/config.js (about) 1 import { compileRegex } from './parsers/text' 2 3 let delimiters = ['{{', '}}'] 4 let unsafeDelimiters = ['{{{', '}}}'] 5 6 const config = { 7 8 /** 9 * Whether to print debug messages. 10 * Also enables stack trace for warnings. 11 * 12 * @type {Boolean} 13 */ 14 15 debug: false, 16 17 /** 18 * Whether to suppress warnings. 19 * 20 * @type {Boolean} 21 */ 22 23 silent: false, 24 25 /** 26 * Whether to use async rendering. 27 */ 28 29 async: true, 30 31 /** 32 * Whether to warn against errors caught when evaluating 33 * expressions. 34 */ 35 36 warnExpressionErrors: true, 37 38 /** 39 * Whether to allow devtools inspection. 40 * Disabled by default in production builds. 41 */ 42 43 devtools: process.env.NODE_ENV !== 'production', 44 45 /** 46 * Internal flag to indicate the delimiters have been 47 * changed. 48 * 49 * @type {Boolean} 50 */ 51 52 _delimitersChanged: true, 53 54 /** 55 * List of asset types that a component can own. 56 * 57 * @type {Array} 58 */ 59 60 _assetTypes: [ 61 'component', 62 'directive', 63 'elementDirective', 64 'filter', 65 'transition', 66 'partial' 67 ], 68 69 /** 70 * prop binding modes 71 */ 72 73 _propBindingModes: { 74 ONE_WAY: 0, 75 TWO_WAY: 1, 76 ONE_TIME: 2 77 }, 78 79 /** 80 * Max circular updates allowed in a batcher flush cycle. 81 */ 82 83 _maxUpdateCount: 100, 84 85 /** 86 * Interpolation delimiters. Changing these would trigger 87 * the text parser to re-compile the regular expressions. 88 * 89 * @type {Array<String>} 90 */ 91 92 get delimiters () { 93 return delimiters 94 }, 95 96 set delimiters (val) { 97 delimiters = val 98 compileRegex() 99 }, 100 101 get unsafeDelimiters () { 102 return unsafeDelimiters 103 }, 104 105 set unsafeDelimiters (val) { 106 unsafeDelimiters = val 107 compileRegex() 108 } 109 } 110 111 export default config