~atrauzzi/praxis/trunk

« back to all changes in this revision

Viewing changes to src/omegatech/praxis/Module.js

  • Committer: Alexander Trauzzi
  • Date: 2012-03-30 10:56:07 UTC
  • Revision ID: atrauzzi@gmail.com-20120330105607-hfw7dr1axlte9x5g
Bulk import of Praxis client codebase.  There will be some rewiring and fixing to get this back up and running.

Not the least of which - a static HTTP server implementation!

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Modules are the logical grouping of functionality in Praxis. They have no visual representation
 
2
// except when being managed.
 
3
define(
 
4
        [
 
5
                "dojo/_base/declare"
 
6
        ],
 
7
        function (
 
8
                declare
 
9
        ) {
 
10
 
 
11
                return(declare(null, {
 
12
 
 
13
                        controller: null,
 
14
 
 
15
                        name: null,
 
16
                        slug: null,
 
17
 
 
18
                        constructor: function (controller) {
 
19
 
 
20
                                // Store the reference to the controller we're operating under.
 
21
                                this.controller = controller;
 
22
 
 
23
                        },
 
24
 
 
25
                        getName: function () {
 
26
                                return(this.name);
 
27
                        },
 
28
 
 
29
                        getSlug: function () {
 
30
                                return(this.slug);
 
31
                        }
 
32
 
 
33
                }));
 
34
 
 
35
        }
 
36
);