diff options
| author | Di Peng | 2011-07-14 17:50:06 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-07-17 22:19:08 -0700 |
| commit | 7a3fdda9650a06792d9278a8cef06d544d49300f (patch) | |
| tree | 6a4cb98b13c9f0cdcef78ae5e50041b21a9ddd53 /test/testabilityPatch.js | |
| parent | b4f18fc295fe9cdbabf9e6e8d7587e5d76ff6878 (diff) | |
| download | angular.js-7a3fdda9650a06792d9278a8cef06d544d49300f.tar.bz2 | |
feat(jqlite): added show(),hide() and eq() methods to jqlite
- add those three methods to jqlite
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 6 |
1 files changed, 5 insertions, 1 deletions
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'; } |
