Skip to content

Check if what we are trying to call is callable before calling it.#77

Closed
digitalxero wants to merge 1 commit into
BorisMoore:masterfrom
digitalxero:master
Closed

Check if what we are trying to call is callable before calling it.#77
digitalxero wants to merge 1 commit into
BorisMoore:masterfrom
digitalxero:master

Conversation

@digitalxero

Copy link
Copy Markdown

add a safety check to make sure we are calling a function. In several of my nested templates newItem.tmpl was getting set as an object or array and would crash here. Adding the check and setting the _ctnt to the obj or array fixed this and cause the templates to parse as expected.

… of my nested templates newItem.tmpl was getting set as an object or array and would crash here. Adding the check and setting the _ctnt to the obj or array fixed this and cause the templates to parse as expected.
@digitalxero

Copy link
Copy Markdown
Author

No but I will make one tomorrow

@BorisMoore

Copy link
Copy Markdown
Owner

Thanks Digitalxero. Yes, I would also like to see an example of how this happens before integrating this change. There have been cases when people have hit an error on that line of code because they were in fact not using the template APIs correctly... So it would be great to see a complete example...

@rdworth

rdworth commented Oct 8, 2011

Copy link
Copy Markdown
Contributor

Thanks for taking the time to submit this pull request. Unfortunately this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.

@rdworth rdworth closed this Oct 8, 2011
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.

4 participants