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 }}
lovejavascript
/
javascript-patterns
Public
forked from
chuanxshi/javascript-patterns
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
cn
User selector
All users
All time
Commit history
Commits on May 23, 2012
added jquery patterns
chuanxshi
committed
23300e9
View commit details
Copy full SHA for 23300e9
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
added jquery plugin patterns
chuanxshi
committed
7f3d3d3
View commit details
Copy full SHA for 7f3d3d3
Browse repository at this point
Commits on Feb 19, 2012
Merge pull request #44 from mmariani/patch-1
Show description for 7a0a507
chuanxshi
committed
7a0a507
View commit details
Copy full SHA for 7a0a507
Browse repository at this point
Commits on Feb 14, 2012
improving on issue #42 changed == to ===
chuanxshi
committed
43d5935
View commit details
Copy full SHA for 43d5935
Browse repository at this point
Merge pull request #42 from Grom-S/cb-pattern-change
Show description for 805176f
chuanxshi
committed
805176f
View commit details
Copy full SHA for 805176f
Browse repository at this point
added example for name function expression
Marco Mariani
committed
c03905f
View commit details
Copy full SHA for c03905f
Browse repository at this point
Commits on Feb 12, 2012
Merge pull request #41 from Grom-S/few-typos
Show description for 349ebd3
chuanxshi
committed
349ebd3
View commit details
Copy full SHA for 349ebd3
Browse repository at this point
Commits on Feb 11, 2012
callback pattern modification
Grom-S
committed
c5c19cc
View commit details
Copy full SHA for c5c19cc
Browse repository at this point
few typos corrected
Grom-S
committed
8629df2
View commit details
Copy full SHA for 8629df2
Browse repository at this point
Commits on Feb 9, 2012
Merge pull request #39 from Grom-S/html_in_js_code
Show description for 414b5f9
chuanxshi
committed
414b5f9
View commit details
Copy full SHA for 414b5f9
Browse repository at this point
Commits on Feb 4, 2012
removed html tags from js code (typo)
Grom-S
committed
53f84b8
View commit details
Copy full SHA for 53f84b8
Browse repository at this point
Commits on Feb 2, 2012
Merge pull request #37 from ricardohbin/master
Show description for 7df0912
chuanxshi
committed
7df0912
View commit details
Copy full SHA for 7df0912
Browse repository at this point
Merge pull request #36 from shawjia/master
Show description for bdf58e7
chuanxshi
committed
bdf58e7
View commit details
Copy full SHA for bdf58e7
Browse repository at this point
Conditionals only using logical operators
Ricardo Bin
committed
aa70e73
View commit details
Copy full SHA for aa70e73
Browse repository at this point
Previous
Next
You can’t perform that action at this time.