diff options
| author | Misko Hevery | 2010-02-04 13:27:56 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-02-04 13:27:56 -0800 |
| commit | 1da18e73a4d09b2a1ace92a4094eeba014eb7dc4 (patch) | |
| tree | 5f679ca5b575f29cd5938099a5dab37aa968c85f /src/Angular.js | |
| parent | 5dd43b85e73ca1708e7fd85094b533b02266a79a (diff) | |
| download | angular.js-1da18e73a4d09b2a1ace92a4094eeba014eb7dc4.tar.bz2 | |
consider widget errors only when widgets are visible
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Angular.js b/src/Angular.js index 3c88c6b7..ded4485f 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -97,6 +97,10 @@ function isLeafNode (node) { } } +function isVisible(element) { + return jQuery(element).is(":visible"); +} + function setHtml(node, html) { if (isLeafNode(node)) { if (msie) { |
