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

jsyaml.addConstructor fails (at least in browserified versions) #39

Closed
breunigs opened this issue Feb 14, 2012 · 2 comments
Closed

jsyaml.addConstructor fails (at least in browserified versions) #39

breunigs opened this issue Feb 14, 2012 · 2 comments
Labels

Comments

@breunigs
Copy link

I’m trying to add a constructor for custom tags using

jsyaml.addConstructor(
  '!sometag',
  function(node) { return "test"} );

This fails with "(Loader || _loader.Loader).addConstructor is not a function". I checked _loader.Loader using Firebug, and it indeed does not have that function. If it’s not a bug, do you have any hints on what I am doing wrong?

@ixti
Copy link
Contributor

ixti commented Feb 14, 2012

Thanks for reporting. I forgot to check exported function. Will fix it soon.

@ixti ixti closed this as completed in 76e215f Feb 28, 2012
@ixti
Copy link
Contributor

ixti commented Feb 28, 2012

Usage of custom constructors added on online demo as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants