Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CMB2_Ajax as a singleton. #602

Merged
merged 1 commit into from
Mar 2, 2016

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Mar 1, 2016

CMB2_Ajax is already being used as a singleton, but doesn't enforce it which leads to the static hooks() function, so let's enforce it and be done with it.

@jtsternberg
Copy link
Member

Fair enough. Though I'd make one change: cmb2_ajax() should simply return CMB2_Ajax::get_instance();.

CMB2_Ajax is already being used as a singleton, but doesn't enforce it which leads to the static `hooks()` function, so let's enforce it and be done with it.
@jrfnl jrfnl force-pushed the feature/cmb2_ajax-is-singleton branch from 73a1da8 to f364403 Compare March 2, 2016 02:42
@jrfnl
Copy link
Contributor Author

jrfnl commented Mar 2, 2016

Ok, done.

jtsternberg added a commit that referenced this pull request Mar 2, 2016
@jtsternberg jtsternberg merged commit 799e721 into CMB2:trunk Mar 2, 2016
@jtsternberg
Copy link
Member

Ok, thanks!

@jrfnl jrfnl deleted the feature/cmb2_ajax-is-singleton branch March 2, 2016 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants