Permalink
Browse files

minor code cleanup and comments

  • Loading branch information...
1 parent 00993d9 commit 6bb68784eb26c7752e9b89ea95625dcde3794ddb @idflood committed May 5, 2012
@@ -19,7 +19,6 @@ define [
#"use strict"
console.log "booting..."
- window.$ = window.jQuery
namespace "ThreeNodes",
App: class App
@@ -5,6 +5,7 @@ define [
], (_, Backbone) ->
#"use strict"
+ ### Connection model ###
namespace "ThreeNodes",
Connection: class Connection extends Backbone.Model
# Create a static indexer used if the connection is not part of a nodes collection (tests)
@@ -5,6 +5,7 @@ define [
], (_, Backbone) ->
#"use strict"
+ ### Field model ###
namespace "ThreeNodes",
NodeField: class NodeField extends Backbone.Model
# Create a static indexer used if the field is not part of a nodes collection (tests)
@@ -6,6 +6,10 @@ define [
], (_, Backbone, Utils) ->
#"use strict"
+ ### GroupDefinition model ###
+
+ # A GroupDefinition defines what is inside a group node, subnodes and internal connections.
+
namespace "ThreeNodes",
GroupDefinition: class GroupDefinition extends Backbone.Model
defaults:
@@ -6,6 +6,10 @@ define [
], (_, Backbone, Utils) ->
#"use strict"
+ ### Node model ###
+
+ # Common base for all nodes.
+
namespace "ThreeNodes",
NodeBase: class NodeBase extends Backbone.Model
@node_name = ''
@@ -8,6 +8,7 @@ define [
], (_, Backbone) ->
#"use strict"
+ ### Connection View ###
namespace "ThreeNodes",
ConnectionView: class ConnectionView extends Backbone.View
initialize: (options) ->
@@ -1,4 +1,3 @@
-
define [
'use!Underscore',
'use!Backbone',
@@ -7,6 +7,7 @@ define [
], (_, Backbone) ->
#"use strict"
+ ### Timeline View ###
namespace "ThreeNodes",
AppTimeline: class AppTimeline extends Backbone.View
initialize: (options) =>
@@ -7,6 +7,12 @@ define [
], (_, Backbone) ->
#"use strict"
+ ### Workspace View ###
+
+ # A workspace consists of nodes and connections.
+ # There is a global workspace and possibly many workspaces
+ # from group nodes. There is always only one workspace displayed.
+
namespace "ThreeNodes",
Workspace: class Workspace extends Backbone.View
initialize: (options) =>

0 comments on commit 6bb6878

Please sign in to comment.