RubyApp 0.5.60 → 0.5.61

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- RubyApp (0.5.60)
4
+ RubyApp (0.5.61)
5
5
  BlueCloth
6
6
  chronic
7
7
  chronic_duration
@@ -1,17 +1,31 @@
1
1
  :plain
2
2
  // #{__FILE__}
3
3
  var RubyApp = new function() {
4
- this.enQueue = function(f) {
5
- if ( $(window).queue('event').length == 0 )
4
+ this.queue = [],
5
+ this.enQueue = function(_function) {
6
+ //RubyApp.log('IN RubyApp.enQueue(...) RubyApp.queue.length=' + RubyApp.queue.length);
7
+ if ( RubyApp.queue.length <= 0 )
6
8
  {
7
- $(window).queue('event', f);
8
- $(window).dequeue('event');
9
+ RubyApp.queue.push('next');
10
+ _function();
9
11
  }
10
12
  else
11
- $(window).queue('event', f);
13
+ RubyApp.queue.push(_function);
14
+ //RubyApp.log('OUT RubyApp.enQueue(...) RubyApp.queue.length=' + RubyApp.queue.length);
12
15
  },
13
16
  this.deQueue = function() {
14
- $(window).dequeue('event');
17
+ //RubyApp.log('IN RubyApp.deQueue() RubyApp.queue.length=' + RubyApp.queue.length);
18
+ _function = RubyApp.queue.shift();
19
+ if ( _function )
20
+ if ( _function === 'next' )
21
+ {
22
+ _function = RubyApp.queue.shift();
23
+ if ( _function )
24
+ _function();
25
+ }
26
+ else
27
+ _function();
28
+ //RubyApp.log('OUT RubyApp.deQueue() RubyApp.queue.length=' + RubyApp.queue.length);
15
29
  },
16
30
  this.waitCount = 0,
17
31
  this.showWait = function() {
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.5.60"
2
+ VERSION = "0.5.61"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 115
4
+ hash: 113
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 60
10
- version: 0.5.60
9
+ - 61
10
+ version: 0.5.61
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar