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
There needs to be a way to handle errors in Minim. Some options:
minim.toElement({ foo: 'bar'}) .get('a') // Undefined and throws error .set('b', 'c')
With the latter, we can attach methods from every element, and then (try to) mimic promises.
minim.toElement({ foo: 'bar'}) .get('a') // Undefined and should create an error .set('b', 'c') // The error object would simply pass itself along .then(function() { console.log('all good') }) .catch(function(error) { console.log('oops', error) })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There needs to be a way to handle errors in Minim. Some options:
Throw JavaScript errors
Create special Minim Error object
With the latter, we can attach methods from every element, and then (try to) mimic promises.
The text was updated successfully, but these errors were encountered: