-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.js
More file actions
39 lines (30 loc) · 1.02 KB
/
main.js
File metadata and controls
39 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* @fileOverview Main file of Simple To-Do extension
* @author Oleg Koshelnikov
* @license MIT
*/
/*jslint plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50, white: true */
/*global define, $, brackets */
define(function (require, exports, module)
{
'use strict';
var ExtensionUtils = brackets.getModule('utils/ExtensionUtils'),
AppInit = brackets.getModule('utils/AppInit'),
ProjectManager = brackets.getModule('project/ProjectManager'),
FileTodoProvider = require('todo/providers/file'),
TodoManager = require('todo/todo_manager'),
todoManager;
// Load CSS
ExtensionUtils.loadStyleSheet(module, 'styles/style.css');
// Create To-do Manager
todoManager = new TodoManager();
// Init
AppInit.appReady(function()
{
todoManager.initialize([ FileTodoProvider ]);
$(ProjectManager).on('projectOpen', function ()
{
todoManager.onProjectChanged();
});
});
});