kriszyp / put-selector

A high-performance, lightweight function for creating and manipulating DOM elements with succinct, elegant, familiar CSS selector-based syntax
Other
290 stars 39 forks source link

Fail when putting something different to a string #31

Closed pedroetb closed 8 years ago

pedroetb commented 8 years ago

Since last commit (01bd3a47401a010c17b635370ba912e183bc4acc) there is a problem when you pass a content with a type different of string (number, as example).

The problem is at line 174 from put.js. Maybe the arg type could be checked before or converted to string first.