Skip to content

Commit 8fbcf8d

Browse files
committed
Basic Plugin Creation: Fix broken link
Closes jquerygh-490
1 parent 53c7aed commit 8fbcf8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

page/plugins/basic-plugin-creation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Note that the notion of chaining is *not* applicable to jQuery utility methods l
5151

5252
## Protecting the $ Alias and Adding Scope
5353

54-
The `$` variable is very popular among JavaScript libraries, and if you're using another library with jQuery, you will have to make jQuery not use the `$` with `jQuery.noConflict()`. However, this will break our plugin since it is written with the assumption that `$` is an alias to the `jQuery` function. To work well with other plugins, _and_ still use the jQuery `$` alias, we need to put all of our code inside of an [Immediately Invoked Function Expression](http://stage.learn.jquery.com/javascript-101/functions/#immediately-invoked-function-expression), and then pass the function `jQuery`, and name the parameter `$`:
54+
The `$` variable is very popular among JavaScript libraries, and if you're using another library with jQuery, you will have to make jQuery not use the `$` with `jQuery.noConflict()`. However, this will break our plugin since it is written with the assumption that `$` is an alias to the `jQuery` function. To work well with other plugins, _and_ still use the jQuery `$` alias, we need to put all of our code inside of an [Immediately Invoked Function Expression](http://stage.learn.jquery.com/javascript-101/functions/#immediately-invoked-function-expression-iife), and then pass the function `jQuery`, and name the parameter `$`:
5555

5656
```
5757
(function ( $ ) {

0 commit comments

Comments
 (0)