Skip to content

Commit 2c23562

Browse files
Update documentation for Element.visible.
1 parent 548580c commit 2c23562

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/prototype/dom/dom.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -267,27 +267,6 @@
267267
*
268268
* $('hidden').visible();
269269
* // -> false
270-
*
271-
* ##### Notes
272-
*
273-
* Styles applied via a CSS stylesheet are _not_ taken into consideration.
274-
* Note that this is not a Prototype limitation, it is a CSS limitation.
275-
*
276-
* language: html
277-
* <style>
278-
* #hidden-by-css {
279-
* display: none;
280-
* }
281-
* </style>
282-
*
283-
* [...]
284-
*
285-
* <div id="hidden-by-css"></div>
286-
*
287-
* And the associated JavaScript:
288-
*
289-
* $('hidden-by-css').visible();
290-
* // -> true
291270
**/
292271
function visible(element) {
293272
return $(element).getStyle('display') !== 'none';

0 commit comments

Comments
 (0)