]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Fixed Orbit height issues 4795/head
authorJoe Workman <joe@workmanmail.com>
Tue, 25 Mar 2014 21:41:44 +0000 (14:41 -0700)
committerJoe Workman <joe@workmanmail.com>
Tue, 25 Mar 2014 21:41:44 +0000 (14:41 -0700)
commit3b94dc27c24dd9133ae6a1e7bc6f4fe20c1d385c
tree4980a1b30512ee67bc3e4d1a837c147621054960
parent47fa85b0a4210f2a961488acf9e5fcb271814d96
Fixed Orbit height issues

This solves problems with instances of Orbit that do not have direct image children.

compute_dimensions is now also called on window.load() since this event get triggered after all assets on the page have been loaded.

I changed the children() search to use find(). We cannot always guarantee that there will be direct image children. So find will find all of the child images. I know that children() is faster than find() but we are talking about micro seconds here. I think that the added functionality is worth it.

Also the children are stored in a variable. This way find() is only called once and not twice like children() was.
js/foundation/foundation.orbit.js