Skip to content

Commit

Permalink
Fixed plugin manager on IE
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Feb 19, 2010
1 parent ddc2daa commit dc1e882
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/application_swt/lib/application_swt/html_tab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def initialize(model, notebook)

def create_tab_widget
Swt::Graphics::Device.DEBUG = true
@browser = Swt::Browser.new(notebook.tab_folder, Swt::SWT::MOZILLA)
@browser = Swt::Browser.new(notebook.tab_folder, Swt::SWT::NONE)
@widget = @browser
@item.control = @widget
end
Expand Down
12 changes: 8 additions & 4 deletions plugins/html_view/lib/html_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ def function(args)
def setup_javascript_listeners
js = []
js << "<script type=\"text/javascript\">"
js << "this.Controller = {"
js << "Controller = {"
methods = []
(controller.methods - Object.new.methods).each do |method_name|
js << " #{method_name.gsub(/_(\w)/) { |a| $1.upcase}}: function() {"
js << " rubyCall(\"#{method_name}\", Array.prototype.slice.call(arguments));"
js << " },"
method = []
method << " #{method_name.gsub(/_(\w)/) { |a| $1.upcase}}: function() {"
method << " rubyCall(\"#{method_name}\", Array.prototype.slice.call(arguments));"
method << " }"
methods << method.join("\n")
end
js << methods.join(",\n")
js << "};"
js << "</script>"
js.join("\n")
Expand Down
1 change: 0 additions & 1 deletion plugins/repl/lib/repl.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

require 'repl/internal_mirror'

module Redcar
Expand Down

0 comments on commit dc1e882

Please sign in to comment.