Skip to content

Commit

Permalink
Better aligning with Leaflet practices on constructor functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Goran Pavlovic committed Mar 29, 2017
1 parent 7778111 commit 871f405
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion leaflet.rrose-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,8 @@ L.Rrose = L.Popup.extend({
this._container.style.left = this._containerLeft + 'px';
}

});
});

L.rrose = function (options, source) {
return new L.Rrose(options, source);
};

0 comments on commit 871f405

Please sign in to comment.