domoritz/leaflet-maskcanvas — pull request #11 by martingraham (2013-12-18 15:49:26+00:00)
Title: conditional use of _createTile

Don't know whether this is how you'd do it. But I've renamed _createTile to _oldCreateTile, and then added a version comparison function. If Leaflet comes in as less than 0.7 then it points _createTile to _oldCreateTile to restore the old functionality.

Also, changed setData so it can take in an array of LatLng objects