Skip to content

Commit e3b64cd

Browse files
authored
Merge pull request #4 from mygrocerydeals/master
Fill in some blanks
2 parents 7310289 + 5e837e3 commit e3b64cd

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

stub.js

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,23 @@ window.google = {
1818
};
1919
},
2020
},
21+
controls: {
22+
"right_bottom": EMPTY_ARRAY
23+
},
2124

2225
Animation: EMPTY_OBJECT,
2326
Attribution: EMPTY_OBJECT,
2427
BicyclingLayer: noop,
2528
Circle: noop,
26-
ControlPosition: EMPTY_OBJECT,
29+
ControlPosition: {
30+
RIGHT_BOTTOM: "right_bottom"
31+
},
2732
Data: noop,
28-
DirectionsRenderer: noop,
33+
DirectionsRenderer: function() {
34+
return {
35+
setMap: noop
36+
}
37+
},
2938
DirectionsService: noop,
3039
DirectionsStatus: EMPTY_OBJECT,
3140
DistanceMatrixElementStatus: EMPTY_OBJECT,
@@ -39,7 +48,12 @@ window.google = {
3948
GeocoderStatus: EMPTY_OBJECT,
4049
GroundOverlay: noop,
4150
ImageMapType: noop,
42-
InfoWindow: fnEmptyObject,
51+
InfoWindow: function() {
52+
return {
53+
addListener: noop,
54+
close: noop
55+
}
56+
},
4357
KmlLayer: noop,
4458
KmlLayerStatus: EMPTY_OBJECT,
4559
LatLng: function(lat, lng) {
@@ -88,7 +102,9 @@ window.google = {
88102
setStreetView: noop,
89103
setTilt: noop,
90104
setZoom: noop,
91-
controls: EMPTY_OBJECT,
105+
controls: {
106+
"right_bottom": EMPTY_ARRAY
107+
},
92108
data: {
93109
add: noop,
94110
addListener: noop,
@@ -145,6 +161,9 @@ window.google = {
145161
setTitle: noop,
146162
setVisible: noop,
147163
setZIndex: noop,
164+
setIcon: noop,
165+
addListener: noop,
166+
getPosition: noop
148167
};
149168
},
150169
MarkerImage: fnEmptyObject,

0 commit comments

Comments
 (0)