PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/pyjs/tests/test024.js

http://pyjamas.googlecode.com/
JavaScript | 26 lines | 21 code | 5 blank | 0 comment | 3 complexity | fe5127d2c45d134f65b4111de8f1a9c8 MD5 | raw file
 1__CalendarProvider.prototype.__class__ = "CalendarProvider";
 2function CalendarProvider() {
 3    return new __CalendarProvider();
 4}
 5function __CalendarProvider() {
 6}
 7__CalendarProvider.prototype.pushResults = function(acceptor, startRow, people) {
 8    var rows = new pyjslib_List([]);
 9
10        var __person = people.__iter__();
11        try {
12            while (true) {
13                var person = __person.next();
14                
15        
16    rows.append(new pyjslib_Tuple([person.getName(), person.getDescription(), person.getSchedule(daysFilter)]));
17
18            }
19        } catch (e) {
20            if (e != StopIteration) {
21                throw e;
22            }
23        }
24        
25    acceptor.accept(startRow, rows);
26};