rsence-pre 2.1.0.15 → 2.1.0.16
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 +1 -1
- data/js/foundation/eventmanager/eventmanager.js +4 -7
- data/lib/plugins/plugin.rb +17 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.0.
|
1
|
+
2.1.0.16.pre
|
@@ -544,27 +544,24 @@ EVENT = {
|
|
544
544
|
}
|
545
545
|
_ctrl = _this.focusOptions[i].ctrl;
|
546
546
|
if(_ctrl.drawn){
|
547
|
+
if(ELEM.getStyle(i,'visibility',true) === 'hidden'){
|
548
|
+
continue;
|
549
|
+
}
|
547
550
|
_elem = ELEM.get(i);
|
548
551
|
if (!_this._coordCacheFlag || !_this._coordCache[i]) {
|
549
552
|
_rect = _ctrl.rect;
|
550
|
-
_pos = [
|
553
|
+
_pos = [_ctrl.pageX(),_ctrl.pageY()];
|
551
554
|
_size = [_rect.width,_rect.height];
|
552
|
-
// _pos = ELEM.getVisiblePosition(_ctrl.elemId);
|
553
|
-
// // [x,y]
|
554
|
-
// _size = ELEM.getVisibleSize(_ctrl.elemId);
|
555
|
-
// // [w,h]
|
556
555
|
_this._coordCache[i] = [_pos[0], _pos[1], _size[0], _size[1]];
|
557
556
|
}
|
558
557
|
_coords = _this._coordCache[i];
|
559
558
|
|
560
559
|
// Is the mouse pointer inside the element's rectangle?
|
561
560
|
if (x >= _coords[0] && x <= _coords[0] + _coords[2] && y >= _coords[1] && y <= _coords[1] + _coords[3]) {
|
562
|
-
// console.log('coords:',_coords);
|
563
561
|
_hovered.push(i);
|
564
562
|
}
|
565
563
|
}
|
566
564
|
}
|
567
|
-
// console.log('update hover:',_hovered);
|
568
565
|
_this.hovered = _hovered;
|
569
566
|
},
|
570
567
|
|
data/lib/plugins/plugin.rb
CHANGED
@@ -291,6 +291,18 @@ module RSence
|
|
291
291
|
|
292
292
|
# @private Returns a hash with valid symbol keys for +#value_call+.
|
293
293
|
def sanitize_value_call_hash( hash_dirty )
|
294
|
+
if hash_dirty.class == Symbol
|
295
|
+
return { :method => hash_dirty }
|
296
|
+
elsif hash_dirty.class == String
|
297
|
+
if hash_dirty.include?('.')
|
298
|
+
last_dot_index = hash_dirty.rindex('.')
|
299
|
+
call_plugin = hash_dirty[0..(last_dot_index-1)].to_sym
|
300
|
+
call_method = hash_dirty[(last_dot_index+1)..-1].to_sym
|
301
|
+
return { :method => call_method, :plugin => call_plugin }
|
302
|
+
else
|
303
|
+
return { :method => hash_dirty.to_sym }
|
304
|
+
end
|
305
|
+
end
|
294
306
|
hash_clean = {}
|
295
307
|
hash_dirty.each do | key, value |
|
296
308
|
if key.to_sym == :method
|
@@ -320,7 +332,7 @@ module RSence
|
|
320
332
|
# @private Returns a sanitized copy of a single responder specification.
|
321
333
|
def sanitize_value_responders( responders_dirty )
|
322
334
|
if responders_dirty.class != Array
|
323
|
-
warn "Unsupported responders type: #{responders_dirty.inspect} (expected Array or Hash). Trying work-around.." unless responders_dirty.class == Hash
|
335
|
+
warn "Unsupported responders type: #{responders_dirty.inspect} (expected Array or Hash). Trying work-around.." unless responders_dirty.class == Hash and RSence.args[:verbose]
|
324
336
|
responders_dirty = [ responders_dirty ]
|
325
337
|
end
|
326
338
|
responders_clean = []
|
@@ -335,7 +347,7 @@ module RSence
|
|
335
347
|
responder_method = responder_dirty[(last_dot_index+1)..-1].to_sym
|
336
348
|
responder_dirty = { :method => responder_method, :plugin => responder_plugin }
|
337
349
|
else
|
338
|
-
responder_dirty = { :method =>
|
350
|
+
responder_dirty = { :method => responder_dirty.to_sym }
|
339
351
|
end
|
340
352
|
else
|
341
353
|
warn "Unsupported responder type: #{responder_dirty.inspect}. Skipping.."
|
@@ -374,6 +386,9 @@ module RSence
|
|
374
386
|
end
|
375
387
|
elsif key.to_sym == :value_call or key.to_sym == :call
|
376
388
|
value_item_clean[:value_call] = sanitize_value_call_hash( value )
|
389
|
+
elsif key.to_sym == :msg_call
|
390
|
+
value_item_clean[:value_call] = sanitize_value_call_hash( value )
|
391
|
+
value_item_clean[:value_call][:uses_msg] = true unless value_item_clean[:value_call].has_key?(:uses_msg)
|
377
392
|
elsif key.to_sym == :restore_default or key.to_sym == :restore
|
378
393
|
if [TrueClass, FalseClass].include? value.class
|
379
394
|
value_item_clean[:restore_default] = value
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsence-pre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 71
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 2.1.0.
|
10
|
+
- 16
|
11
|
+
version: 2.1.0.16
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Riassence Inc.
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-11-
|
19
|
+
date: 2010-11-23 00:00:00 +02:00
|
20
20
|
default_executable: rsence-pre
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|