You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,13 @@ <h3>Selector</h3>
100
100
<li><ahref="https://github.com/shichuan/javascript-patterns/blob/master/jquery-patterns/universal-selector.html" target="_blank">Universal Selector</a> - use of universal selector</li>
101
101
<li><ahref="https://github.com/shichuan/javascript-patterns/blob/master/jquery-patterns/specific-when-needed.html" target="_blank">Be Specific when Needed</a> - be specific only when needed</li>
102
102
</ul>
103
+
<h3id="jquery-pubsub">Publish–subscribe</h3>
104
+
<ul>
105
+
<li><ahref="https://github.com/shichuan/javascript-patterns/blob/master/jquery-patterns/pubsub-custom-events.html" target="_blank">Method 1</a> - custom events using .on() and .off()</li>
106
+
<li><ahref="https://github.com/shichuan/javascript-patterns/blob/master/jquery-patterns/decending-from-id.html" target="_blank">Method 2</a> - using jQuery 1.7's $.Callbacks() feature</li>
107
+
<li><ahref="https://github.com/shichuan/javascript-patterns/blob/master/jquery-patterns/universal-selector.html" target="_blank">Method 3</a> - using jQuery UI $.Observable</li>
0 commit comments