Sexy JavaScript?
Written by on January 25th, 2008 in Ajax News.
How can you not post something called Sexy JavaScript?
JAVASCRIPT:
-
-
// Sexy JavaScript
-
// runs assertNotNull(iframeElement) in IE, otherwise assertNull(iframeElement)
-
// taken from test code for http://yura.thinkweb2.com/scripting/contextMenu/
-
-
testShimExists: function() { with(this) {
-
this[Prototype.Browser.IE ? ‘assertNotNull’ : ‘assertNull’](iframeElement);
-
}},
-
Source: Ajaxian
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/222741108/sexy-javascript