er viagra reseptfri cialis 12 preis farmacie italiane online cialis cialis sans ordonnance en belgique levitra rezeptpflichtig vente viagra a petit prix sildenafil acheter vardenafil viagra rezeptfrei schweiz apothekenpreis viagra precio levitra generico cialis generico funziona conseguir viagra en valencia sildenafil sans ordonnance levitra achat
commander rapide kamagra 
achat cialis france 
cialis rapide 
vente cialismg france 
viagra et generique 
acheter viagra en belgique est ce la vrai 
cialis generique pas cher 
acheter viagra par telephone 
cialis generique 10 
laboratoire indien viagra 
forum viagra 50 
viagra pour femme en france 
commande cialis generique 
acheter viagra avis 
forum viagra 
kamagra tablets online in birmingham priligy fast shipping discount viagra online viagra tablets where can i buy levitra viagra naturel buy kamagra without prescription purchase levitra finasteride mg generic canada buy champix viagra online buy levitra paypal kamagra online pharmacy propecia in canada need prescription ambien maximum dosage

Adding Deprecation Warning in JavaScript Console

I used this quick trick today to help me clean up and refactor some javascript functions today:

if ("console" in window) console.warn('DEPRECATED function call to '+ arguments.callee +'\nCalled by:\n'+ arguments.callee.caller );

Which results in a fine deprecation warning in the console:

There is plenty of space for improvement here. Feel free to use or tamper … but please post any alternative suggestions here as a comment.

2 Responses to “Adding Deprecation Warning in JavaScript Console”

  1. Mick Staugaard Says:

    That’s a really neat little trick! Thanks for sharing Jesper.

  2. Tobias Says:

    If you want to get the console output in Internet Explorer, you can install the Companion.JS plug-in: