| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- module.exports = {
- /**
- * Whether to print debug messages.
- * Also enables stack trace for warnings.
- *
- * @type {Boolean}
- */
- debug: false,
- /**
- * Whether to suppress warnings.
- *
- * @type {Boolean}
- */
- silent: false,
- /**
- * Whether to use async rendering.
- */
- async: true,
- /**
- * Whether to warn against errors caught when evaluating
- * expressions.
- */
- warnExpressionErrors: true,
- /**
- * Whether or not to handle fully object properties which
- * are already backed by getters and seters. Depending on
- * use case and environment, this might introduce non-neglible
- * performance penalties.
- */
- convertAllProperties: false,
- /**
- * Internal flag to indicate the delimiters have been
- * changed.
- *
- * @type {Boolean}
- */
- _delimitersChanged: true,
- /**
- * List of asset types that a component can own.
- *
- * @type {Array}
- */
- _assetTypes: [
- 'component',
- 'directive',
- 'elementDirective',
- 'filter',
- 'transition',
- 'partial'
- ],
- /**
- * prop binding modes
- */
- _propBindingModes: {
- ONE_WAY: 0,
- TWO_WAY: 1,
- ONE_TIME: 2
- },
- /**
- * Max circular updates allowed in a batcher flush cycle.
- */
- _maxUpdateCount: 100
- }
- /**
- * Interpolation delimiters. Changing these would trigger
- * the text parser to re-compile the regular expressions.
- *
- * @type {Array<String>}
- */
- var delimiters = ['{{', '}}']
- var unsafeDelimiters = ['{{{', '}}}']
- var textParser = require('./parsers/text')
- Object.defineProperty(module.exports, 'delimiters', {
- get: function () {
- return delimiters
- },
- set: function (val) {
- delimiters = val
- textParser.compileRegex()
- }
- })
- Object.defineProperty(module.exports, 'unsafeDelimiters', {
- get: function () {
- return unsafeDelimiters
- },
- set: function (val) {
- unsafeDelimiters = val
- textParser.compileRegex()
- }
- })
|