aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-10 15:54:29 -0700
committerValerio Virgillito2012-05-10 15:54:29 -0700
commitd6cec6193a16563e9d35d75f0caee49bab927cda (patch)
tree7ee7adfc6e1d3ef85311877110b0981361e9b061 /js/controllers
parentbcc9f5edaf73529c057433bb3ee8219f3c6935b2 (diff)
downloadninja-d6cec6193a16563e9d35d75f0caee49bab927cda.tar.gz
Fixing the google components.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/controllers')
-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":