rochdev/tinto

View on GitHub
lib/html/states/enabled.js

Summary

Maintainability
A
50 mins
Test Coverage
'use strict';

/**
 * @memberOf tinto.html.states
 * @this tinto.Component
 * @returns {Promise}
 */
module.exports = function enabled() {
  return this.getAttribute('disabled').then(function(value) {
    return value === null;
  });
};