Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
--- map.rb 2007-04-02 13:35:38.000000000 +0100 +++ map.rb.new 2007-04-02 13:35:20.000000000 +0100 @@ -207,6 +207,7 @@ no_global = options[:no_global] fullscreen = options[:full] load_pr = options[:proto_load] #to prevent some problems when the onload event callback from Prototype is used + load_lowpro = options[:lowpro_load] #use lowpro's event system html = "" html << "<script type=\"text/javascript\">\n" if !no_script_tag @@ -216,6 +217,8 @@ if !no_load if load_pr html << "Event.observe(window,'load'," + elsif load_lowpro + html << "Event.onReady(" else html << "window.onload = addCodeToFunction(window.onload," end
From the Design Piracy series on my blog: