rsence-pre 2.3.0.13 → 2.3.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.0.13.pre
1
+ 2.3.0.14.pre
@@ -215,6 +215,21 @@ HEventResponder = HClass.extend({
215
215
  return this;
216
216
  },
217
217
 
218
+ /** = Description
219
+ * Alias for #setEnabled(true)
220
+ *
221
+ **/
222
+ enable: function(){
223
+ return this.setEnabled(true);
224
+ },
225
+
226
+ /** = Description
227
+ * Alias for #setEnabled(false)
228
+ *
229
+ **/
230
+ disable: function(){
231
+ return this.setEnabled(false);
232
+ },
218
233
 
219
234
  /** = Description
220
235
  * Alternative flag setter for the mouseMove event type. If set to true,
@@ -1526,6 +1526,16 @@ HView = HClass.extend({
1526
1526
  delete _this[i];
1527
1527
  }
1528
1528
  },
1529
+
1530
+ /** = Description
1531
+ * A convenience method to call #die after 10ms using a setTimeout.
1532
+ * Use this method, if destroying self or destroying from a subview.
1533
+ *
1534
+ **/
1535
+ dieSoon: function(){
1536
+ var _this = this;
1537
+ setTimeout(function(){_this.die();},10);
1538
+ },
1529
1539
 
1530
1540
  /** Recursive idle poller. Should be extended if functionality is desired.
1531
1541
  **/
@@ -38,6 +38,7 @@ HRadioButtonList = HListItemControl.extend({
38
38
  _value,
39
39
  _label,
40
40
  _radioButton,
41
+ _selected = false,
41
42
  i = 0;
42
43
  for ( ; i < this.listItemViews.length; i++ ) {
43
44
  try {
@@ -54,8 +55,33 @@ HRadioButtonList = HListItemControl.extend({
54
55
  _value = _listItem[0];
55
56
  _label = _listItem[1];
56
57
  _component = this.createComponent( i, _label );
58
+ if( _value === this.value ){
59
+ _selected = _value;
60
+ }
57
61
  this.listItemViews[i] = _component;
58
62
  }
63
+ if( _selected !== false ){
64
+ this.setValue(-1);
65
+ this.setValue(_selected);
66
+ }
67
+ else if (this['valueMatrix'] !== undefined){
68
+ this.setValue(-1);
69
+ var
70
+ _prevIndex = this.radioButtonIndexValue.value,
71
+ _listLen = _listItems.length;
72
+ this.radioButtonIndexValue.set(-1);
73
+ if( _listLen > 0 ){
74
+ if( _listLen-1 < _prevIndex ){
75
+ this.setValue(this.listItems[_listLen-1][0]);
76
+ }
77
+ else if (this.listItems[_prevIndex]){
78
+ this.setValue(this.listItems[_prevIndex][0]);
79
+ }
80
+ else{
81
+ this.setValue(this.listItems[0][0]);
82
+ }
83
+ }
84
+ }
59
85
  this.refreshValue();
60
86
  },
61
87
 
@@ -89,14 +89,12 @@ class MongoSessionStorage
89
89
  @ses_coll.find.each do |ses_row|
90
90
  ses_id = ses_row['_id'].to_s
91
91
  ses_data_bin = ses_row['ses_data']
92
- puts "ses_data_bin: #{ses_data_bin.inspect}"
93
92
  if ses_data_bin.nil?
94
93
  puts "removing #{ses_id}"
95
94
  remove_session_data( ses_id )
96
95
  else
97
96
  begin
98
97
  ses_data = Marshal.load( ses_data_bin.to_s )
99
- puts "ses_data: #{ses_data.inspect}"
100
98
  rescue => e
101
99
  warn "Unable to restore session #{ses_id}"
102
100
  remove_session_data( ses_id )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsence-pre
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0.13
4
+ version: 2.3.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-28 00:00:00.000000000 Z
13
+ date: 2012-12-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsence-deps