Skip to content

Commit

Permalink
Merge pull request #113 from mathpere/master
Browse files Browse the repository at this point in the history
remove counterproductive restriction
  • Loading branch information
beradrian committed Dec 17, 2015
2 parents b587af7 + 79caee9 commit 990450e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions checklist-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,6 @@ angular.module('checklist-model', [])
terminal: true,
scope: true,
compile: function(tElement, tAttrs) {
if ((tElement[0].tagName !== 'INPUT' || tAttrs.type !== 'checkbox') && (tElement[0].tagName !== 'MD-CHECKBOX') && (!tAttrs.btnCheckbox)) {
throw 'checklist-model should be applied to `input[type="checkbox"]` or `md-checkbox`.';
}

if (!tAttrs.checklistValue && !tAttrs.value) {
throw 'You should provide `value` or `checklist-value`.';
Expand Down

0 comments on commit 990450e

Please sign in to comment.