diff options
author | Jonathan Duran | 2012-02-27 11:22:51 -0800 |
---|---|---|
committer | Jonathan Duran | 2012-02-27 11:22:51 -0800 |
commit | ab10898c78f2bd5d765d9c915848ed8c8e08c5a3 (patch) | |
tree | b1ebb87e9c101c558108e1cec043d64a03cc50a1 /js/mediators/element-mediator.js | |
parent | fb8aacbadba8dffb9619eb16e4626c197dc9264d (diff) | |
parent | da60be29baab67440535b6b2b71fe7de989dfed0 (diff) | |
download | ninja-ab10898c78f2bd5d765d9c915848ed8c8e08c5a3.tar.gz |
Merge branch 'refs/heads/integration-candidate' into Timeline
Diffstat (limited to 'js/mediators/element-mediator.js')
-rwxr-xr-x | js/mediators/element-mediator.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index 51923f08..127f73e1 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -463,7 +463,7 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
463 | getColor: { | 463 | getColor: { |
464 | value: function(el, isFill) { | 464 | value: function(el, isFill) { |
465 | if(!el.elementModel) { | 465 | if(!el.elementModel) { |
466 | NJUtils.makeElementModel2(el); | 466 | NJUtils.makeModelFromElement(el); |
467 | } | 467 | } |
468 | return el.elementModel.controller["getColor"](el, isFill); | 468 | return el.elementModel.controller["getColor"](el, isFill); |
469 | } | 469 | } |
@@ -624,7 +624,7 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
624 | getColor2: { | 624 | getColor2: { |
625 | value: function(el, prop, mutator) { | 625 | value: function(el, prop, mutator) { |
626 | if(!el.elementModel) { | 626 | if(!el.elementModel) { |
627 | NJUtils.makeElementModel2(el); | 627 | NJUtils.makeModelFromElement(el); |
628 | } | 628 | } |
629 | 629 | ||
630 | return this.getColor(el, (prop === "background")); | 630 | return this.getColor(el, (prop === "background")); |
@@ -636,7 +636,7 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
636 | get3DProperty: { | 636 | get3DProperty: { |
637 | value: function(el, prop) { | 637 | value: function(el, prop) { |
638 | if(!el.elementModel) { | 638 | if(!el.elementModel) { |
639 | NJUtils.makeElementModel2(el); | 639 | NJUtils.makeModelFromElement(el); |
640 | } | 640 | } |
641 | return el.elementModel.controller["get3DProperty"](el, prop); | 641 | return el.elementModel.controller["get3DProperty"](el, prop); |
642 | } | 642 | } |
@@ -645,7 +645,7 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
645 | get3DProperties: { | 645 | get3DProperties: { |
646 | value: function(el) { | 646 | value: function(el) { |
647 | if(!el.elementModel) { | 647 | if(!el.elementModel) { |
648 | NJUtils.makeElementModel2(el); | 648 | NJUtils.makeModelFromElement(el); |
649 | } | 649 | } |
650 | // var mat = this.getMatrix(el); | 650 | // var mat = this.getMatrix(el); |
651 | // var dist = this.getPerspectiveDist(el); | 651 | // var dist = this.getPerspectiveDist(el); |
@@ -658,7 +658,7 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
658 | getMatrix: { | 658 | getMatrix: { |
659 | value: function(el) { | 659 | value: function(el) { |
660 | if(!el.elementModel) { | 660 | if(!el.elementModel) { |
661 | NJUtils.makeElementModel2(el); | 661 | NJUtils.makeModelFromElement(el); |
662 | } | 662 | } |
663 | return el.elementModel.controller["getMatrix"](el); | 663 | return el.elementModel.controller["getMatrix"](el); |
664 | } | 664 | } |
@@ -667,7 +667,7 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
667 | getPerspectiveDist: { | 667 | getPerspectiveDist: { |
668 | value: function(el) { | 668 | value: function(el) { |
669 | if(!el.elementModel) { | 669 | if(!el.elementModel) { |
670 | NJUtils.makeElementModel2(el); | 670 | NJUtils.makeModelFromElement(el); |
671 | } | 671 | } |
672 | return el.elementModel.controller["getPerspectiveDist"](el); | 672 | return el.elementModel.controller["getPerspectiveDist"](el); |
673 | } | 673 | } |