Permalink
Browse files

added note on usage

  • Loading branch information...
1 parent ab2fe39 commit 611d642f20518c044d8837e0c2104a43cb61976f @mikecomstock committed Mar 17, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 place-search-input.js
View
@@ -1,4 +1,10 @@
-MC.Views.PlaceSearchInput = Backbone.View.extend({
+// Usage:
+// var v = new MC.Views.PlaceSearchInput({ el: $('input') });
+// v.on('select', function (item) {
+// console.log(item);
+// });
+
+MC.Views.PlaceSearchInput = Backbone.View.extend({
initialize: function () {
this.geocoder = new google.maps.Geocoder();

0 comments on commit 611d642

Please sign in to comment.