rsence 2.2.4 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.4
1
+ 2.2.5
@@ -325,7 +325,7 @@ HSlider = HControl.extend({
325
325
  for(;i<3;i++){
326
326
  _iOrientation = _orientations[i];
327
327
  _activeOrientation = (_orientation===_iOrientation);
328
- _cssClassName = (_orientation==='c')?_componentName+'_thumb':_componentName+'_thumb_'+_iOrientation;
328
+ _cssClassName = (_orientation==='c')?_componentName+'_'+'thumb':_componentName+'_'+'thumb'+'_'+_iOrientation;
329
329
  _toggleCSS( _ctrlId, _cssClassName, _activeOrientation );
330
330
  }
331
331
 
@@ -271,7 +271,7 @@ COMM.JSONRenderer = HClass.extend({
271
271
  }
272
272
  if( !_isViewClass ){
273
273
  if( _hasRect ){
274
- console.log( "renderNode warning; Supposedly rect-incompatible class supplied: "+_className );
274
+ !this.isProduction && console.log( "renderNode warning; Supposedly rect-incompatible class supplied: "+_className );
275
275
  }
276
276
  }
277
277
 
@@ -32,7 +32,7 @@ HListItems = HValueResponder.extend({
32
32
  _parent = _rect;
33
33
  }
34
34
  else {
35
- console.warn && console.warn( "Warning: the rect constructor argument of HListItems is deprecated." );
35
+ !this.isProduction && console.warn && console.warn( "Warning: the rect constructor argument of HListItems is deprecated." );
36
36
  }
37
37
  this.parent = _parent;
38
38
  if ( this.parent.setListItemResponder ){
@@ -101,7 +101,7 @@ HRadioButtonList = HListItemControl.extend({
101
101
  this.base(_state);
102
102
  if(!this['listItemViews']){ return; }
103
103
  for(var i=0;i<this.listItems.length;i++){
104
- this.listItemViews[i].setEnabled(_state)
104
+ this.listItemViews[i].setEnabled(_state);
105
105
  }
106
106
  },
107
107
 
@@ -122,7 +122,10 @@ HRadioButtonList = HListItemControl.extend({
122
122
  }
123
123
  if(_listItems[ this.value ] !== undefined){
124
124
  _value = _listItems[ this.value ];
125
- this.parent.setValue( _value[0] );
125
+ if( this.parent.value !== _value[0] ){
126
+ // console.log('radio button index responder:',_value[0],', parent value:',this.parent.value);
127
+ this.parent.setValue( _value[0] );
128
+ }
126
129
  }
127
130
  }
128
131
  }),
@@ -141,8 +144,10 @@ HRadioButtonList = HListItemControl.extend({
141
144
  }
142
145
  for ( var i = 0; i < this.listItems.length; i++ ) {
143
146
  if ( this.listItems[i][0] === _value ) {
144
- this.radioButtonResponder.setValue( -1 );
145
- this.radioButtonResponder.setValue( i );
147
+ if( this.radioButtonResponder.value !== i ){
148
+ // this.radioButtonResponder.setValue( -1 );
149
+ this.radioButtonResponder.setValue( i );
150
+ }
146
151
  break;
147
152
  }
148
153
  }
@@ -17,10 +17,10 @@ HMiniMenuItem = HRadioButton.extend({
17
17
 
18
18
  defaultEvents: {
19
19
  click: true,
20
- mouseUp: true,
21
- mouseDown: true
20
+ mouseUp: true //,
21
+ // mouseDown: true
22
22
  },
23
-
23
+
24
24
  _activateParentParent: function(){
25
25
  var _parentParent = this.parent.options.logicParent;
26
26
  EVENT.changeActiveControl(_parentParent);
@@ -40,6 +40,7 @@ HMiniMenuItem = HRadioButton.extend({
40
40
  click: function(){
41
41
  var _now = new Date().getTime();
42
42
  if( _now - this._parentLastActivation > 200 ){
43
+ // console.log('click:',this.label);
43
44
  this.base();
44
45
  this._parentLastActivation = _now;
45
46
  this._activateParentParent();
@@ -47,11 +48,11 @@ HMiniMenuItem = HRadioButton.extend({
47
48
  return true;
48
49
  },
49
50
 
50
- mouseDown: function(){
51
- this.base();
52
- this.click();
53
- return true;
54
- },
51
+ // mouseDown: function(){
52
+ // this.base();
53
+ // this.click();
54
+ // return true;
55
+ // },
55
56
 
56
57
  mouseUp: function(){
57
58
  this.base();
@@ -443,7 +443,7 @@ class ClientPkgBuild
443
443
  pkg_part = @js[ js_pkg ]
444
444
  pkg_parts.push( pkg_part )
445
445
  pkg_size = ( @package_origsizes[ js_pkg ] or @destination_origsize[ js_pkg ] or @compound_origsize[ js_pkg ] )
446
- warn "nil pkg size of: #{js_pkg}" if pkg_size.nil? or pkg_size == 0
446
+ warn "nil pkg size of: #{js_pkg}" if ( pkg_size.nil? or pkg_size == 0 ) and @debug
447
447
  js_size += pkg_size.nil? ? 0 : pkg_size
448
448
  end
449
449
  js_src = pkg_parts.join("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsence
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.2.5
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-05-21 00:00:00.000000000 Z
13
+ date: 2012-07-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsence-deps
@@ -385,4 +385,3 @@ signing_key:
385
385
  specification_version: 3
386
386
  summary: Release 2.2 version of RSence.
387
387
  test_files: []
388
- has_rdoc: