Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigigraph / vigigraph / public / js / libs / Autocompleter / Autocompleter.Local.js @ 2832ea2b

History | View | Annotate | Download (521 Bytes)

1
/**
2
 * Autocompleter.Local
3
 *
4
 * http://digitarald.de/project/autocompleter/
5
 *
6
 * @version                1.1.2
7
 *
8
 * @license                MIT-style license
9
 * @author                Harald Kirschner <mail [at] digitarald.de>
10
 * @copyright        Author
11
 */
12

    
13
Autocompleter.Local = new Class({
14

    
15
        Extends: Autocompleter,
16

    
17
        options: {
18
                minLength: 0,
19
                delay: 200
20
        },
21

    
22
        initialize: function(element, tokens, options) {
23
                this.parent(element, options);
24
                this.tokens = tokens;
25
        },
26

    
27
        query: function() {
28
                this.update(this.filter());
29
        }
30

    
31
});