From 5d965750c3bb7b22f46705e7e5f98ab0b303d6ca Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Sun, 25 Sep 2016 21:45:29 -0400 Subject: [PATCH] Docs: Remove reference to deprecated `.ready()` method Fixes #221 --- warnings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warnings.md b/warnings.md index ce989269..6f1f2ca9 100644 --- a/warnings.md +++ b/warnings.md @@ -129,7 +129,7 @@ This is _not_ a warning, but a console log message the plugin shows when it firs **Cause**: Using one of jQuery's API methods to bind a "ready" event, e.g. `$( document ).on( "ready", fn )`, will cause the function to be called when the document is ready, but only if it is attached before the browser fires its own `DOMContentLoaded` event. That makes it unreliable for many uses, particularly ones where jQuery or its plugins are loaded asynchronously after page load. -**Solution**: Replace any use of `$( document ).on( "ready", fn )` with `$( document ).ready( fn )` or more simply, just `$( fn )`. These alternative methods work reliably even when the document is already loaded. +**Solution**: Replace any use of `$( document ).on( "ready", fn )` with `$( fn )`. This approach works reliably even when the document is already loaded. ### JQMIGRATE: Additional params for 'jQuery.easing' functions are not documented and redundant