Skip to content

Commit

Permalink
Show found callback name in deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Aug 13, 2013
1 parent 8d45b85 commit b88d010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leaflet/static/leaflet/leaflet.extras.js
Expand Up @@ -174,7 +174,7 @@ L.Map.djangoMap = function (id, options) {
* django-leaflet < 0.7 callback (deprecated)
*/
if(typeof options.callback == 'function') {
console.warn('DEPRECATED: Use function callback is deprecated, prefer events (see documentation).');
console.warn('DEPRECATED: Use function callback ' + options.callback.name + ' is deprecated, prefer events (see documentation).');
options.callback(map, options.djoptions.extent);
return;
}
Expand Down

0 comments on commit b88d010

Please sign in to comment.