public
Description: Updated hourly from the jQuery SVN repo
Homepage: http://jquery.com
Clone URL: git://github.com/JackDanger/jquery.git
Removed use of class variables in favor of sessions

git-svn-id: http://jqueryjs.googlecode.com/svn/trunk@1998 
c715fcbe-d12f-0410-84c4-316a508785bb
wycats (author)
Mon May 28 10:35:25 -0700 2007
commit  b2296c2af7304cf9b5f1dfb1d2e37744daf1c2ef
tree    d4aa33513faf96fab309d301ed2744338d559eb1
parent  af1889e17f2213957341899b1af4e57acc290b4a
...
2
3
4
5
 
6
7
8
...
17
18
19
20
 
21
22
23
24
...
2
3
4
 
5
6
7
8
...
17
18
19
 
20
21
22
23
24
0
@@ -2,7 +2,7 @@ class JQueryController < ActionController::Base
0
   
0
   def app_jquery
0
     headers['Content-Type'] = "text/javascript; charset=UTF-8"
0
- render :inline => (JQueryOnRails::files || []).map {|f|
0
+ render :inline => (session[:jquery_on_rails_files] || []).map {|f|
0
       File.read("#{ RAILS_ROOT }/public/javascripts/jquery_modules/#{ f }") }.join("\n")
0
   end
0
   
0
@@ -17,7 +17,7 @@ class ApplicationController < ActionController::Base
0
     files_to_include = JQueryOnRails.selectors_per_js.select do |file,sels|
0
       sels.any? {|sel| !doc[sel].empty? }
0
     end.map {|k,v| k}
0
- JQueryOnRails.files = files_to_include
0
+ session[:jquery_on_rails_files] = files_to_include
0
   end
0
 
0
 end
0
\ No newline at end of file
...
11
12
13
14
15
16
17
18
19
20
21
22
23
24
...
11
12
13
 
 
 
 
 
 
 
 
14
15
16
0
@@ -11,14 +11,6 @@ module JQueryOnRails
0
         s.merge(x[0] => x[1]) }
0
   end
0
   
0
- def self.files
0
- @@files
0
- end
0
-
0
- def self.files=j_files
0
- @@files = j_files
0
- end
0
-
0
   module Routes
0
   
0
     def jquery

Comments

    No one has commented yet.