coolerator.vision 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.8
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{coolerator.vision}
8
- s.version = "0.2.7"
8
+ s.version = "0.2.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Innis"]
12
- s.date = %q{2009-11-16}
12
+ s.date = %q{2009-11-17}
13
13
  s.description = %q{A Rails plugin}
14
14
  s.email = %q{corey@coolerator.net}
15
15
  s.extra_rdoc_files = [
@@ -1,4 +1,12 @@
1
1
  (function($) {
2
+ $(function() {
3
+ $.each(__ready__, function(i, fn) {
4
+ fn();
5
+ });
6
+
7
+ __after__ && __after__();
8
+ });
9
+
2
10
  $.extend(Coolerator, {
3
11
  Registrar : {
4
12
  subscriptions : {},
@@ -77,11 +85,21 @@
77
85
  return result;
78
86
  }
79
87
 
80
- $(function ready() {
88
+ __ready__.push(function() {
81
89
  // HMM... this register passed as a callback is completely unnecessary.
82
90
  fn.call(listener, subscription(register));
83
91
  });
92
+ },
93
+
94
+ after_ready : function after_ready(fn) {
95
+ __after__ = fn;
84
96
  }
85
97
  }
86
98
  });
99
+
100
+
101
+ // private...................................................................
102
+
103
+ var __after__;
104
+ var __ready__ = [];
87
105
  })(jQuery);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coolerator.vision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Innis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-16 00:00:00 -05:00
12
+ date: 2009-11-17 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency