Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
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
{{ message }}
Val9
/
javascript-patterns
Public
forked from
chuanxshi/javascript-patterns
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Commits
Branch selector
master
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 9, 2013
Merge pull request #66 from devinrhode2/patch-1
Show description for adb7570
chuanxshi
committed
adb7570
View commit details
Copy full SHA for adb7570
Browse repository at this point
Commits on Jan 28, 2013
Merge pull request #65 from josher19/patch-1
Show description for d2905df
chuanxshi
committed
d2905df
View commit details
Copy full SHA for d2905df
Browse repository at this point
Commits on Jan 25, 2013
Merge pull request #63 from picasso250/master
Show description for f99365d
chuanxshi
committed
f99365d
View commit details
Copy full SHA for f99365d
Browse repository at this point
Commits on Dec 21, 2012
Added note about var fn = function fn( breaking IE
devinrhode2
committed
4a9429d
View commit details
Copy full SHA for 4a9429d
Browse repository at this point
Commits on Dec 19, 2012
Added removeEventListener
josher19
committed
e8cdc83
View commit details
Copy full SHA for e8cdc83
Browse repository at this point
Commits on Sep 27, 2012
readbility
picasso250
committed
17bb546
View commit details
Copy full SHA for 17bb546
Browse repository at this point
Commits on Sep 1, 2012
added shim sniffing to general patterns
chuanxshi
committed
27209e8
View commit details
Copy full SHA for 27209e8
Browse repository at this point
added shim sniffing to general patterns
chuanxshi
committed
d24cefd
View commit details
Copy full SHA for d24cefd
Browse repository at this point
Commits on Aug 13, 2012
Merge pull request #61 from DrColossos/fix-missing-functions
Show description for 88825c2
chuanxshi
committed
88825c2
View commit details
Copy full SHA for 88825c2
Browse repository at this point
Added both functions that are responsible for the output
Dominik Svatos
committed
71e2221
View commit details
Copy full SHA for 71e2221
Browse repository at this point
Commits on Aug 2, 2012
Merge pull request #60 from michaelpace/comment_fix
Show description for 728c21d
chuanxshi
committed
728c21d
View commit details
Copy full SHA for 728c21d
Browse repository at this point
Commits on Aug 1, 2012
Fixed commented function output
michaelpace
committed
2d2ca26
View commit details
Copy full SHA for 2d2ca26
Browse repository at this point
Commits on Jun 3, 2012
added jQuery pub/sub patterns
chuanxshi
committed
1ac72e0
View commit details
Copy full SHA for 1ac72e0
Browse repository at this point
Commits on May 26, 2012
added partial application pattern example
chuanxshi
committed
b537c69
View commit details
Copy full SHA for b537c69
Browse repository at this point
Commits on May 14, 2012
better jQuery selector cache sample, fixed #57, thanx to mping, maksimr and antonywu
chuanxshi
committed
a06c39a
View commit details
Copy full SHA for a06c39a
Browse repository at this point
Commits on May 7, 2012
Merge pull request #54 from davidosomething/patch-2
Show description for a5c034b
chuanxshi
committed
a5c034b
View commit details
Copy full SHA for a5c034b
Browse repository at this point
fixed #33, thanks to dirkbonhomme for the highlight
chuanxshi
committed
430d4d3
View commit details
Copy full SHA for 430d4d3
Browse repository at this point
Commits on Apr 22, 2012
fixed #40, added better description to avoid confusion
chuanxshi
committed
c395012
View commit details
Copy full SHA for c395012
Browse repository at this point
Commits on Apr 8, 2012
comments are modified to fixed #22
chuanxshi
committed
35d8f10
View commit details
Copy full SHA for 35d8f10
Browse repository at this point
Commits on Apr 3, 2012
added better reference to jquery plugin patterns
chuanxshi
committed
f4561c1
View commit details
Copy full SHA for f4561c1
Browse repository at this point
Merge pull request #48 from StevenBlack/MoreSettingsDefaultsOptions_Semantics
Show description for 6dce52d
chuanxshi
committed
6dce52d
View commit details
Copy full SHA for 6dce52d
Browse repository at this point
Commits on Mar 30, 2012
Merge pull request #52 from stevearm/patch-1
Show description for 032000f
chuanxshi
committed
032000f
View commit details
Copy full SHA for 032000f
Browse repository at this point
Commits on Mar 29, 2012
Merge pull request #47 from StevenBlack/SettingsDefaultsOptions_Semantics
Show description for 404d2ca
chuanxshi
committed
404d2ca
View commit details
Copy full SHA for 404d2ca
Browse repository at this point
Merge pull request #43 from AutoSponge/master
Show description for f6148b0
chuanxshi
committed
f6148b0
View commit details
Copy full SHA for f6148b0
Browse repository at this point
Commits on Mar 28, 2012
OFF should be OOF (FOO backwards)
David
committed
2c8fdfb
View commit details
Copy full SHA for 2c8fdfb
Browse repository at this point
Merge pull request #49 from actsasbuffoon/patch-1
Show description for 0589ebb
chuanxshi
committed
0589ebb
View commit details
Copy full SHA for 0589ebb
Browse repository at this point
Comments were the same in the anti-pattern and preferred pattern
stevearm
committed
552ba56
View commit details
Copy full SHA for 552ba56
Browse repository at this point
Commits on Mar 27, 2012
Fix typo in object-constants.html
actsasbuffoon
committed
475cb84
View commit details
Copy full SHA for 475cb84
Browse repository at this point
Whitespace normalization, followed by a semantic cleanup of options, defaults, and settings
Show description for 2e4f4cd
StevenBlack
committed
2e4f4cd
View commit details
Copy full SHA for 2e4f4cd
Browse repository at this point
Fix for the potential semantic confusion between settings, defaults, and options.
Show description for a506ff3
StevenBlack
committed
a506ff3
View commit details
Copy full SHA for a506ff3
Browse repository at this point
Whitespace changes to better conform to jQuery coding standards, removed the mix of spaces and tabs, adjusted line spacing in these two files for consistency of conceptual segmentation, and made ch…
Show description for d34a297
StevenBlack
committed
d34a297
View commit details
Copy full SHA for d34a297
Browse repository at this point
Commits on Mar 14, 2012
added basic and extend
chuanxshi
committed
e53a5be
View commit details
Copy full SHA for e53a5be
Browse repository at this point
added jquery plugin patterns
chuanxshi
committed
3e7222d
View commit details
Copy full SHA for 3e7222d
Browse repository at this point
Commits on Mar 13, 2012
added jquery event delegation pattern
chuanxshi
committed
7c5e30c
View commit details
Copy full SHA for 7c5e30c
Browse repository at this point
added jquery plugin patterns
chuanxshi
committed
d9318cc
View commit details
Copy full SHA for d9318cc
Browse repository at this point
Previous
Next
You can’t perform that action at this time.