We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would have expected these to return true:
true
isSubtypeOf "textual", "headline"
isSubtypeOf "textual", "h1"
Is there a reason why they don't?
(Previously asked in the-grid/poly/issues/13)
The text was updated successfully, but these errors were encountered:
We have tests for those: https://github.com/the-grid/Flowerflip/blob/master/spec/Choice.coffee#L283
...and it passes https://magnum.travis-ci.com/the-grid/Flowerflip#L250
Sorry, something went wrong.
This appears to be the reason it doesn't return true:
This is how it's currently being used:
{isSubtypeOf} = require "flowerflip/lib/schema" class Content ... _computeGetBlock: => ... return (block) => for type in isSubtypeOfs return false unless isSubtypeOf block.type, type ... true ...
This works:
schema = require "flowerflip/lib/schema" class Content ... _computeGetBlock: => ... return (block) => for type in isSubtypeOfs return false unless schema.isSubtypeOf.call schema, block.type, type ... true ...
No branches or pull requests
I would have expected these to return
true
:Is there a reason why they don't?
(Previously asked in the-grid/poly/issues/13)
The text was updated successfully, but these errors were encountered: