aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements/component-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers/elements/component-controller.js')
-rwxr-xr-xjs/controllers/elements/component-controller.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/controllers/elements/component-controller.js b/js/controllers/elements/component-controller.js
index d902e4a1..41f0f943 100755
--- a/js/controllers/elements/component-controller.js
+++ b/js/controllers/elements/component-controller.js
@@ -11,7 +11,8 @@ exports.ComponentController = Montage.create(ElementController, {
11 11
12 getProperty: { 12 getProperty: {
13 value: function(el, prop) { 13 value: function(el, prop) {
14 var component = el.controller || this.application.ninja.currentDocument.getComponentFromElement(el); 14 console.log("safdasdasdasd");
15 var component = el.controller || this.application.ninja.currentDocument.model.getComponentFromElement(el);
15 16
16 switch(prop) { 17 switch(prop) {
17 case "id": 18 case "id":
@@ -34,7 +35,7 @@ exports.ComponentController = Montage.create(ElementController, {
34 35
35 setProperty: { 36 setProperty: {
36 value: function(el, p, value) { 37 value: function(el, p, value) {
37 var component = el.controller || this.application.ninja.currentDocument.getComponentFromElement(el); 38 var component = el.controller || this.application.ninja.currentDocument.model.getComponentFromElement(el);
38 39
39 switch(p) { 40 switch(p) {
40 case "id": 41 case "id":