From 7a3fdda9650a06792d9278a8cef06d544d49300f Mon Sep 17 00:00:00 2001 From: Di Peng Date: Thu, 14 Jul 2011 17:50:06 -0700 Subject: feat(jqlite): added show(),hide() and eq() methods to jqlite - add those three methods to jqlite --- test/testabilityPatch.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/testabilityPatch.js') diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index 0b22b2ae..34e1710b 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -274,9 +274,13 @@ function sortedHtml(element, showNgClass) { return html; } + +/** + * This method is a cheap way of testing if css for a given node is not set to 'none'. It doesn't + * actually test if an element is displayed by the browser. Be aware!!! + */ function isCssVisible(node) { var display = node.css('display'); - if (display == 'block') display = ""; return display != 'none'; } -- cgit v1.2.3