11### global _:true, angular:true, google:true ###
22do ->
3+ # coffeelint:disable=check_scope
34 capitalize = (s ) ->
45 return s[0 ].toUpperCase () + s .slice (1 )
6+ # coffeelint:enable=check_scope
57
68 class MapObject
79 getMap : =>
6567 class Marker extends MapObject
6668 _ .extend @ :: , PositionObject :: , DraggableObject :: , VisibleObject ::
6769 @instances = 0
70+ # coffeelint:disable=no_private_function_fat_arrows
6871 @ resetInstances = =>
72+ # coffeelint:enable=no_private_function_fat_arrows
6973 @instances = 0
7074 @ creationSubscribe = (obj , cb ) ->
7175 window .google .maps .event .addListener (obj, ' creation' , cb)
@@ -115,7 +119,9 @@ do ->
115119 class Circle extends MapObject
116120 _ .extend @ :: , DraggableObject :: , VisibleObject ::
117121 @instances = 0
122+ # coffeelint:disable=no_private_function_fat_arrows
118123 @ resetInstances = =>
124+ # coffeelint:enable=no_private_function_fat_arrows
119125 @instances = 0
120126 @ creationSubscribe = (obj , cb ) ->
121127 window .google .maps .event .addListener (obj, ' creation' , cb)
@@ -128,16 +134,18 @@ do ->
128134 @ setOptions opts
129135
130136 # getters
137+ # coffeelint:disable=check_scope
131138 @props .forEach (p) =>
132- @ [" get#{ capitalize p } " ] = =>
139+ @ [" get#{ capitalize (p) } " ] = =>
133140 @ [p]
134141
135142 # setters
136143 @props .forEach (p) =>
137- @ [" set#{ capitalize p } " ] = (val ) =>
144+ @ [" set#{ capitalize (p) } " ] = (val ) =>
138145 @ [p] = val
139146 if p == " radius" or p == " center"
140147 window .google .maps .event .fireAllListeners " #{ p} _changed" , @
148+ # coffeelint:enable=check_scope
141149
142150 Circle .instances += 1
143151 @instance = Circle .instances
@@ -188,7 +196,9 @@ do ->
188196 getMarkerWithLabel : ->
189197 class MarkerWithLabel extends getMarker ()
190198 @instances = 0
199+ # coffeelint:disable=no_private_function_fat_arrows
191200 @ resetInstances = =>
201+ # coffeelint:enable=no_private_function_fat_arrows
192202 @instances = 0
193203 constructor : (opts ) ->
194204 if opts?
@@ -221,8 +231,10 @@ do ->
221231 getPolyline = ->
222232 class Polyline extends DraggableObject
223233 @instances = 0
234+ # coffeelint:disable=no_private_function_fat_arrows
224235 @ resetInstances = =>
225236 @instances = 0
237+ # coffeelint:enable=no_private_function_fat_arrows
226238 constructor : (opts ) ->
227239 if opts?
228240 [' draggable' , ' editable' , ' map' ,' path' , ' visible' ].forEach (o) =>
@@ -241,7 +253,9 @@ do ->
241253 getMVCArray = ->
242254 class MVCArray extends Array
243255 @instances = 0
256+ # coffeelint:disable=no_private_function_fat_arrows
244257 @ resetInstances = =>
258+ # coffeelint:enable=no_private_function_fat_arrows
245259 @instances = 0
246260 constructor : ->
247261 MVCArray .instances += 1
@@ -480,7 +494,7 @@ do ->
480494 getLatLng : getLatLng
481495
482496 (new GoogleApiMock ()).initAll ()
483-
497+
484498 angular .module (' uiGmapgoogle-maps.mocks' , [' uiGmapgoogle-maps' ])
485499 .factory (' GoogleApiMock' , ->
486500 GoogleApiMock
0 commit comments