rsence-pre 2.2.0.30 → 2.2.0.31

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.0.30.pre
1
+ 2.2.0.31.pre
@@ -44,6 +44,7 @@ HSlider = HControl.extend({
44
44
  controlDefaults: (HControlDefaults.extend({
45
45
  minValue: 0,
46
46
  maxValue: 1,
47
+ roundValue: false,
47
48
  inverseAxis: false
48
49
  })),
49
50
 
@@ -66,7 +67,12 @@ HSlider = HControl.extend({
66
67
  if (_value > this.maxValue) {
67
68
  _value = this.maxValue;
68
69
  }
69
- this.base(_value);
70
+ if( this.options.roundValue ){
71
+ this.base( Math.round( _value ) );
72
+ }
73
+ else {
74
+ this.base(_value);
75
+ }
70
76
  if(this._thumbElemId){
71
77
  this.drawThumbPos();
72
78
  }
@@ -11,6 +11,7 @@ BROWSER_TYPE =
11
11
  ie7: false
12
12
  ie8: false
13
13
  ie9: false
14
+ ie10: false
14
15
  opera: false
15
16
  safari: false
16
17
  symbian: false
@@ -23,7 +24,7 @@ BROWSER_TYPE =
23
24
  ###
24
25
  The DOM Element abstraction engine
25
26
  ###
26
- ELEM = HClass.extend({
27
+ ELEM = HClass.extend
27
28
 
28
29
  constructor: null
29
30
 
@@ -743,6 +744,8 @@ ELEM = HClass.extend({
743
744
  _browserType.ie7 = _ua.indexOf('MSIE 7') != -1
744
745
  _browserType.ie8 = _ua.indexOf('MSIE 8') != -1
745
746
  _browserType.ie9 = _ua.indexOf('MSIE 9') != -1
747
+ _browserType.ie10 = _ua.indexOf('MSIE 10') != -1
748
+ _browserType.ie9 = _browserType.ie10 # IE 10 is treated like IE 9
746
749
  _browserType.mac = _ua.indexOf('Macintosh') != -1
747
750
  _browserType.win = _ua.indexOf('Windows') != -1
748
751
  _browserType.firefox = _ua.indexOf('Firefox') != -1
@@ -792,8 +795,6 @@ ELEM = HClass.extend({
792
795
  ELEM._domWaiter()
793
796
  , 10 )
794
797
  null
795
-
796
- })
797
798
  ELEM.reset()
798
799
 
799
800
  ElementManager = ELEM
@@ -2,14 +2,19 @@
2
2
  # The RSence namespace
3
3
  RSence =
4
4
 
5
+ # Call this method from the index page for
6
+ # client-only features
7
+ clientConf: (_clientPrefix)->
8
+ HThemeManager.themePath = _clientPrefix+'/themes'
9
+ HThemeManager._start()
10
+
5
11
  # Call this method from the index page to
6
12
  # setup the environment variables and to
7
13
  # start synchronizing immediately afterwards.
8
14
  serverConf: (_clientPrefix, _helloUrl) ->
9
15
  COMM.ClientPrefix = _clientPrefix
10
16
  COMM.Transporter.HelloUrl = _helloUrl
11
- HThemeManager.themePath = _clientPrefix+'/themes'
12
- HThemeManager._start()
17
+ RSence.clientConf( _clientPrefix )
13
18
  COMM.AutoSyncStarter.start()
14
19
  null
15
20
 
@@ -17,7 +17,7 @@ HValueAction = HClass.extend({
17
17
  if( _options.valueObj ){
18
18
  _options.valueObj.bind( this );
19
19
  }
20
- if( this.parent['addView'] instanceof Function ){
20
+ if( this.parent.addView instanceof Function ){
21
21
  this.viewId = this.parent.addView( this );
22
22
  }
23
23
  this.refresh();
@@ -47,9 +47,9 @@ HValueAction = HClass.extend({
47
47
  this.viewId = null;
48
48
  },
49
49
  refresh: function(){
50
- if( this.options[ 'refreshAction' ] ){
50
+ if( this.options.refreshAction || this.options.action ){
51
51
  var
52
- _refreshAction = this.options.refreshAction;
52
+ _refreshAction = this.options.refreshAction ? this.options.refreshAction : this.options.action;
53
53
  if( this.parent ){
54
54
  if( this.parent[_refreshAction] ){
55
55
  if( (this.parent[_refreshAction] instanceof Function) ){
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.2.0.30
4
+ version: 2.2.0.31
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-12-09 00:00:00.000000000 Z
13
+ date: 2011-12-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsence-deps
17
- requirement: &70312415196520 !ruby/object:Gem::Requirement
17
+ requirement: &70195813799020 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - =
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: '966'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70312415196520
25
+ version_requirements: *70195813799020
26
26
  description: ! 'RSence is a different and unique development model and software frameworks
27
27
  designed first-hand for real-time web applications. RSence consists of separate,
28
28
  but tigtly integrated data- and user interface frameworks.