~cos64/trolly/trunk

« back to all changes in this revision

Viewing changes to service/ShoppingListService.qml

  • Committer: Cos64
  • Date: 2015-12-27 16:25:18 UTC
  • Revision ID: cos64@staticdot.com-20151227162518-l21h29yzrnm81rpo
Bug 1495134: Load history items from db. Move to main list, delete, delete all.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    }
10
10
 
11
11
    property var do_load: profile(listDao.db_load);
 
12
    property var do_load_history: profile(listDao.db_load_history);
12
13
    property var do_save: profile(listDao.db_save);
13
14
    property var do_update_checked: profile(listDao.db_update_checked);
14
15
    property var do_update_name: profile(listDao.db_update_name);
46
47
        function wrapper() {
47
48
            var before = new Date();
48
49
 
49
 
            f.apply(this, arguments);
 
50
            var result = f.apply(this, arguments);
50
51
 
51
52
            var after = new Date();
52
53
            console.log(f.name + " took " + (after - before) + " ms.");
 
54
 
 
55
            return result;
53
56
        }
54
57
 
55
58
        return wrapper;