rsence-pre 2.2.0.20 → 2.2.0.21
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.
|
1
|
+
2.2.0.21.pre
|
data/js/core/elem/elem.coffee
CHANGED
@@ -390,14 +390,17 @@ ELEM = HClass.extend({
|
|
390
390
|
_flushStartTime = new Date().getTime()
|
391
391
|
@_flushTime -= _flushStartTime
|
392
392
|
_loopMaxL = @_elemTodo.length
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
393
|
+
if _loopMaxL > 0
|
394
|
+
_currTodo = @_elemTodo.splice( 0, _loopMaxL )
|
395
|
+
for i in [ 1.._loopMaxL ]
|
396
|
+
@_flushLoopFlushed++
|
397
|
+
_id = _currTodo.shift()
|
398
|
+
if _id == null
|
399
|
+
console.log('no id:',_id)
|
400
|
+
continue
|
401
|
+
@_elemTodoH[_id] = false
|
402
|
+
@_flushStyleCache( _id )
|
403
|
+
@_flushAttrCache( _id )
|
401
404
|
@_flushCounter++
|
402
405
|
@_flushTime += new Date().getTime()
|
403
406
|
@_needFlush = @_elemTodo.length != 0 # unless @_needFlush
|
@@ -541,6 +544,8 @@ ELEM = HClass.extend({
|
|
541
544
|
Sets and buffers the named style attribute value or selectively direct
|
542
545
|
###
|
543
546
|
setStyle: (_id, _key, _value, _noCache)->
|
547
|
+
if _id == undefined
|
548
|
+
console.log('ERROR; undefined id in ELEM#setStyle(',_id, _key, _value, _noCache,')')
|
544
549
|
_noCache = true if BROWSER_TYPE.ie9
|
545
550
|
try
|
546
551
|
_cached = @_styleCache[_id]
|
@@ -634,12 +639,14 @@ ELEM = HClass.extend({
|
|
634
639
|
_styleTodo = @_styleTodo[_id]
|
635
640
|
_cached = @_styleCache[_id]
|
636
641
|
_loopMaxP = _styleTodo.length
|
642
|
+
return null if _loopMaxP == 0
|
637
643
|
_currTodo = _styleTodo.splice( 0, _loopMaxP )
|
638
644
|
for i in [ 1.._loopMaxP ]
|
639
645
|
_key = _currTodo.shift()
|
640
646
|
if _key == 'opacity'
|
641
647
|
@setOpacity( _id, _cached[_key] )
|
642
648
|
else
|
649
|
+
console.log( 'invalid style key:',_elem, _key, _cached) unless _key
|
643
650
|
@_setElementStyle( _elem, _key, _cached[_key] )
|
644
651
|
null
|
645
652
|
|
@@ -375,6 +375,10 @@ HSystem = {
|
|
375
375
|
// the element id of the view
|
376
376
|
_elemId = _view[ _elemIdStr ];
|
377
377
|
|
378
|
+
if( _elemId === undefined ){
|
379
|
+
continue;
|
380
|
+
}
|
381
|
+
|
378
382
|
// do the element manager call itself to update the dom property
|
379
383
|
ELEM.setStyle( _elemId, _zIdxStr, i );
|
380
384
|
}
|
@@ -270,12 +270,11 @@ module RSence
|
|
270
270
|
Dir.entries( bundle_path ).each do |entry_name|
|
271
271
|
next if entry_name[0].chr == '.' # skip hidden, '.' and '..'
|
272
272
|
full_path = File.join( bundle_path, entry_name )
|
273
|
-
|
273
|
+
if File.directory?( full_path )
|
274
274
|
next if entry_name == 'plugins' # skip sub-plugins
|
275
|
-
|
276
|
-
next unless
|
277
|
-
|
278
|
-
next unless is_src_file
|
275
|
+
else
|
276
|
+
next unless entry_name.include?('.')
|
277
|
+
next unless ['yaml','rb'].include?( entry_name.split('.')[-1] )
|
279
278
|
end
|
280
279
|
newest_date = most_recent( full_path, newest_date )
|
281
280
|
end
|
@@ -145,9 +145,11 @@ class ClientPkgBuild
|
|
145
145
|
end
|
146
146
|
if has_coffee and @coffee_supported
|
147
147
|
begin
|
148
|
+
coffee_start = Time.new.to_f
|
148
149
|
coffee_path = File.join( bundle_path, bundle_name+'.coffee' )
|
149
150
|
coffee_src = read_file( coffee_path )
|
150
151
|
js_data = CoffeeScript.compile( coffee_src, :bare => true )
|
152
|
+
@coffee_time += ( Time.new.to_f - coffee_start )
|
151
153
|
rescue CoffeeScript::CompilationError
|
152
154
|
if has_js
|
153
155
|
js_data = %{console.log( "WARNING: CoffeeScript complilation failed for source file #{coffee_path}, using the js variant instead." );}
|
@@ -357,6 +359,7 @@ class ClientPkgBuild
|
|
357
359
|
def run
|
358
360
|
|
359
361
|
time_start = Time.now.to_f*10000
|
362
|
+
@coffee_time = 0
|
360
363
|
|
361
364
|
# hash of bundles per bundle name per theme; @html_by_theme[theme_name][bundle_name] = bundle_data
|
362
365
|
@html_by_theme = {}
|
@@ -399,8 +402,10 @@ class ClientPkgBuild
|
|
399
402
|
minimize_data
|
400
403
|
build_compound_packages
|
401
404
|
|
402
|
-
ms_taken = ((Time.now.to_f*10000)-time_start).
|
403
|
-
|
405
|
+
ms_taken = ((Time.now.to_f*10000)-time_start).round/10.0
|
406
|
+
coffee_taken = (@coffee_time*10000).round/10.0
|
407
|
+
without_coffee = ((ms_taken - coffee_taken)*10).round/10.0
|
408
|
+
@logger.log( "Time taken:\n .coffee: #{coffee_taken}ms\n other: #{without_coffee}ms\n total: #{ms_taken}ms\n\n" )
|
404
409
|
|
405
410
|
end
|
406
411
|
|
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: 85
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 2
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 2.2.0.
|
10
|
+
- 21
|
11
|
+
version: 2.2.0.21
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Riassence Inc.
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-08-
|
20
|
+
date: 2011-08-20 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rsence-deps
|