Displaying 1 result from an estimated 1 matches for "javascriptify_variable".
2007 Nov 05
1
marker event listeners
...ay.rb (working copy)
@@ -25,11 +25,13 @@
end
#Creates a marker: If an info_window or info_window_tabs is
present, the response to the click action from the user is setup here.
def create
- if @options.empty?
- creation = "new
GMarker(#{MappingObject.javascriptify_variable(@point)})"
- else
- creation = "new
GMarker(#{MappingObject.javascriptify_variable(@point)},#{MappingObject.javascriptify_variable(@options)})"
+ creation = "new
GMarker(#{MappingObject.javascriptify_variable(@point)}"
+ if @options
+...