diff options
author | Valerio Virgillito | 2012-05-10 15:54:29 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-10 15:54:29 -0700 |
commit | d6cec6193a16563e9d35d75f0caee49bab927cda (patch) | |
tree | 7ee7adfc6e1d3ef85311877110b0981361e9b061 /js | |
parent | bcc9f5edaf73529c057433bb3ee8219f3c6935b2 (diff) | |
download | ninja-d6cec6193a16563e9d35d75f0caee49bab927cda.tar.gz |
Fixing the google components.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-x | js/controllers/elements/component-controller.js | 5 |
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": |