popupMenu: Rename _arrow_rotation to follow JS covention
This commit is contained in:
parent
470ac0eae3
commit
4950bad2a7
@ -872,14 +872,14 @@ const PopupSubMenu = new Lang.Class({
|
|||||||
if (animate) {
|
if (animate) {
|
||||||
let [minHeight, naturalHeight] = this.actor.get_preferred_height(-1);
|
let [minHeight, naturalHeight] = this.actor.get_preferred_height(-1);
|
||||||
this.actor.height = 0;
|
this.actor.height = 0;
|
||||||
this.actor._arrow_rotation = this._arrow.rotation_angle_z;
|
this.actor._arrowRotation = this._arrow.rotation_angle_z;
|
||||||
Tweener.addTween(this.actor,
|
Tweener.addTween(this.actor,
|
||||||
{ _arrow_rotation: 90,
|
{ _arrowRotation: 90,
|
||||||
height: naturalHeight,
|
height: naturalHeight,
|
||||||
time: 0.25,
|
time: 0.25,
|
||||||
onUpdateScope: this,
|
onUpdateScope: this,
|
||||||
onUpdate: function() {
|
onUpdate: function() {
|
||||||
this._arrow.rotation_angle_z = this.actor._arrow_rotation;
|
this._arrow.rotation_angle_z = this.actor._arrowRotation;
|
||||||
},
|
},
|
||||||
onCompleteScope: this,
|
onCompleteScope: this,
|
||||||
onComplete: function() {
|
onComplete: function() {
|
||||||
@ -905,14 +905,14 @@ const PopupSubMenu = new Lang.Class({
|
|||||||
animate = false;
|
animate = false;
|
||||||
|
|
||||||
if (animate) {
|
if (animate) {
|
||||||
this.actor._arrow_rotation = this._arrow.rotation_angle_z;
|
this.actor._arrowRotation = this._arrow.rotation_angle_z;
|
||||||
Tweener.addTween(this.actor,
|
Tweener.addTween(this.actor,
|
||||||
{ _arrow_rotation: 0,
|
{ _arrowRotation: 0,
|
||||||
height: 0,
|
height: 0,
|
||||||
time: 0.25,
|
time: 0.25,
|
||||||
onUpdateScope: this,
|
onUpdateScope: this,
|
||||||
onUpdate: function() {
|
onUpdate: function() {
|
||||||
this._arrow.rotation_angle_z = this.actor._arrow_rotation;
|
this._arrow.rotation_angle_z = this.actor._arrowRotation;
|
||||||
},
|
},
|
||||||
onCompleteScope: this,
|
onCompleteScope: this,
|
||||||
onComplete: function() {
|
onComplete: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user