From 79caee9299269aa6266c794188a1b931f4c407ac Mon Sep 17 00:00:00 2001 From: Mathieu Perez Date: Tue, 15 Dec 2015 12:50:35 +0100 Subject: [PATCH] remove counterproductive restriction --- checklist-model.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/checklist-model.js b/checklist-model.js index 1f5b3dc..5580636 100644 --- a/checklist-model.js +++ b/checklist-model.js @@ -128,9 +128,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`.';