Archive for July, 2008

Adding Deprecation Warning in JavaScript Console

Thursday, July 17th, 2008 by Jesper Rønn-Jensen

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 […]

IE CSS Bug: Limited @include Statements

Tuesday, July 1st, 2008 by Jesper Rønn-Jensen

I found out that Internet explorer only interprets 32 @include statements in CSS for a webpage. The rest is silently ignored. Tested with IE7. Has anybody tried this with IE8? For more info see: Internet Explorer issue – maximum of 32 CSS @import PS. Silent ignorance is just about the worst form for ignorance when […]