Sexy JavaScript?

Written by on January 25th, 2008 in Ajax News.

How can you not post something called Sexy JavaScript?

JAVASCRIPT:

  1.  
  2. // Sexy JavaScript
  3. // runs assertNotNull(iframeElement) in IE, otherwise assertNull(iframeElement)
  4. // taken from test code for http://yura.thinkweb2.com/scripting/contextMenu/
  5.  
  6. testShimExists: function() { with(this) {
  7.   this[Prototype.Browser.IE ? ‘assertNotNull’ : ‘assertNull’](iframeElement);
  8. }},
  9.  

Source: Ajaxian
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/222741108/sexy-javascript

Comments are closed.



Site Navigation