From 4cc4f592c28bafab1a52887b6262a6af19051b0e Mon Sep 17 00:00:00 2001 From: Chris Oyler Date: Mon, 1 Feb 2016 14:06:48 -0800 Subject: [PATCH] fixes an incorrect illustration of an example callback for the changed.zf.mediaquery event --- docs/pages/media-queries.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pages/media-queries.md b/docs/pages/media-queries.md index e66da7d5d..6f2f360dd 100644 --- a/docs/pages/media-queries.md +++ b/docs/pages/media-queries.md @@ -6,7 +6,7 @@ js: js/foundation.util.mediaQuery.js tags: - breakpoints --- - + ## Default Media Queries Foundation for Sites has three core breakpoints: @@ -209,7 +209,7 @@ Foundation.MediaQuery.get('medium') // => only screen and (min-width: 640px) The media query helper broadcasts an event on the window every time the breakpoint changes. We use this internally with plugins like Interchange to detect a shift in breakpoint. You can also subscribe to the event yourself. ```js -$(window).on('changed.zf.mediaquery', function(event, name) { - // name is the name of the breakpoint +$(window).on('changed.zf.mediaquery', function(event, newSize, oldSize) { + // newSize is the name of the now-current breakpoint, oldSize is the previous breakpoint }); ``` -- 2.47.3