File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
src/com/hendrix/feathers/controls Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,13 @@ package com.hendrix.feathers.controls.flex
113113 _textInitial = value ;
114114 }
115115
116- super . text = value ;
116+ if (value == null ) {
117+ super . text = _textInitial ;
118+
119+ return ;
120+ }
121+
122+ super . text = value ;
117123 }
118124
119125 override public function get text ():String
@@ -302,6 +308,7 @@ package com.hendrix.feathers.controls.flex
302308 public function set textInitial (value :String ):void
303309 {
304310 _textInitial = value ;
311+
305312 super . text = _textInitial ;
306313 }
307314
Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ package com.hendrix.feathers.controls.flex
130130
131131 if (touch. phase == TouchPhase. BEGAN ) {
132132 _mc_skin . currentFrame = 0 ;
133- _mc_skin . loop = false ;
133+ _mc_skin . loop = false ;
134+
134135 _mc_skin . play ();
135136 trace ("begin playing" );
136137 }
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ package com.hendrix.feathers.controls.utils
5656 static public function dateDeltaSeconds (date :Date ):uint
5757 {
5858 var sec: uint = (date . time - (new Date ()). time ) / SECOND ;
59+
5960 return sec;
6061 }
6162
@@ -65,7 +66,8 @@ package com.hendrix.feathers.controls.utils
6566 */
6667 static public function dateDeltaYears (date :Date ):Number
6768 {
68- var sec: Number = Math . abs (date . time - (new Date ()). time ) / YEAR ;
69+ var sec_delta: Number = Math . abs (date . time - (new Date ()). time );
70+ var sec: Number = sec_delta / YEAR ;
6971
7072 return sec;
7173 }
You can’t perform that action at this time.
0 commit comments