5 initialize: function() {
6 this.setListeners = Effects.setListeners.bind(this);
7 this.rotate = Effects.rotate.bind(this);
9 this.isRotateEnabled = true;
10 this.enableRotate = Effects.enableRotate.bind(this);
11 this.disableRotate = Effects.disableRotate.bind(this);
\r
15 if(this.isRotateEnabled) {
16 resize.imageContainerResize.disable();
18 imageHistory.disable();
19 imageTransformation.rotate(90,Effects.rotateCallback.bind(this));
20 this.isRotateEnabled = false;
24 rotateCallback: function() {
25 resize.imageContainerResize.placeClickBox();
26 this.isRotateEnabled = true;
29 setListeners: function() {
30 Event.observe('rotateButton','click',this.rotate);
\r
33 disableRotate: function() {
34 this.isRotateEnabled = false;
37 enableRotate: function() {
38 this.isRotateEnabled = true;