You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There needs to be a way to handle errors in Minim. Some options:
Throw JavaScript errors
minim.toElement({foo: 'bar'}).get('a')// Undefined and throws error.set('b','c')
Create special Minim Error object
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:
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: