Skip to content

Commit

Permalink
Fix loading dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Apr 30, 2010
1 parent 55d650a commit f3ce348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gm_plugin/map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def self.header(options = {})
code << "}, 0.25);\n"
code << "};\n"
end
code << "var loadMaps = function() {\n"
code << "loadMaps = function() {\n"
code << "google.load('maps', '#{options[:version]}', {'callback': initializeMap, 'language': '#{options[:hl]}', 'other_params': 'sensor=#{options[:sensor]}'});\n"
code << "google.load('search', '1', {'language': '#{options[:hl]}'});\n" if options[:local_search]
code << "};\n"
Expand Down

0 comments on commit f3ce348

Please sign in to comment.