diff options
Diffstat (limited to 'src/third_party/wiredtiger/tools/wtstats/template/models/search.js')
-rw-r--r-- | src/third_party/wiredtiger/tools/wtstats/template/models/search.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/tools/wtstats/template/models/search.js b/src/third_party/wiredtiger/tools/wtstats/template/models/search.js new file mode 100644 index 00000000000..7874986f0b6 --- /dev/null +++ b/src/third_party/wiredtiger/tools/wtstats/template/models/search.js @@ -0,0 +1,19 @@ +var AmpersandState = require('ampersand-state'), + debug = require('debug')('model:search'); + +var Search = module.exports = AmpersandState.extend({ + props: { + content: { + type: 'string', + default: '' + } + }, + derived: { + empty: { + deps: ['content'], + fn: function () { + return this.content === ''; + } + } + } +}); |