Permalink
Browse files

error check was too tight

  • Loading branch information...
1 parent 9703843 commit 052d3713328b44ebdbf8012ccc57ddfee6e802d9 @dominictarr committed Jan 7, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 index.js
View
@@ -44,11 +44,7 @@ R.unwrap = function () {
}
R.wrap = function (ta) {
- if(
- !ta ||
- !(ta instanceof HTMLTextAreaElement) ||
- !(ta instanceof HTMLInputElement)
- ) throw new Error('wrap(ta) expects TextArea, or Input')
+ if(!ta) throw new Error('wrap(ta) expects TextArea, or Input')
var cursor = 0, start
var self = this

0 comments on commit 052d371

Please sign in to comment.