Commits

Udi Bauman  committed 738c10b

Very initial backbone models

  • Participants
  • Parent commits f207107

Comments (0)

Files changed (1)

File js/model-models.js

+/**
+ * User: udibauman
+ * Date: 2/2/12
+ * Time: 7:00 PM
+ */
+
+var DiagramElement = Backbone.Model.extend({
+    defaults: {
+        "x": 0,
+        "y": 0,
+        "width": 40,
+        "height": 100
+    }
+});
+
+var Class = DiagramElement.extend({
+    defaults: {
+        "name": "",
+        "super_classes": [],
+        "public_methods": [],
+        "private_methods": []
+    }
+});
+
+
+var Diagram = Backbone.Collection.extend({
+    model: Class
+});