blob: 7874986f0b68c7ceb1a24846835ca3d38be29c3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 === '';
}
}
}
});
|