Permalink
Browse files

added note on usage

  • Loading branch information...
mikecomstock committed Mar 17, 2012
1 parent ab2fe39 commit 37f17b5b1f230497002a58b8b086b8126e6f9d46
Showing with 8 additions and 1 deletion.
  1. +8 −1 place-search-input.js
View
@@ -1,4 +1,11 @@
-MC.Views.PlaceSearchInput = Backbone.View.extend({
+// Usage:
+// var v = new MC.Views.PlaceSearchInput({ el: $('input') });
+// v.on('select', function (item) {
+// // Note that 'item' is the actual object returned by the google.maps.Geocoder.
+// console.log(item);
+// });
+
+MC.Views.PlaceSearchInput = Backbone.View.extend({
initialize: function () {
this.geocoder = new google.maps.Geocoder();

0 comments on commit 37f17b5

Please sign in to comment.