Skip to content

Commit

Permalink
feat(index): create common child components by factory
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Nov 8, 2014
1 parent 3d3aa15 commit 43b791d
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 292 deletions.
8 changes: 4 additions & 4 deletions src/GoogleMapsMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
getMap: React.PropTypes.func,
getApi: React.PropTypes.func,
hasMap: React.PropTypes.func,
getRef: React.PropTypes.func,
getInstanceByRef: React.PropTypes.func,
_set_map: React.PropTypes.func
},

Expand All @@ -23,7 +23,7 @@ module.exports = {
getMap: this._get_map,
getApi: this._get_api,
hasMap: this._has_map,
getRef: this._get_ref,
getInstanceByRef: this._get_instance_by_ref,
_set_map: this._set_map
};
},
Expand All @@ -40,8 +40,8 @@ module.exports = {
return !!this._get_map();
},

_get_ref (key) {
return this.refs[key];
_get_instance_by_ref (key) {
return this.refs[key].state._instance;
},

_set_map (map) {
Expand Down
72 changes: 0 additions & 72 deletions src/InfoWindow.js

This file was deleted.

70 changes: 0 additions & 70 deletions src/Marker.js

This file was deleted.

71 changes: 0 additions & 71 deletions src/Polygon.js

This file was deleted.

71 changes: 0 additions & 71 deletions src/Polyline.js

This file was deleted.

Loading

0 comments on commit 43b791d

Please sign in to comment.