mozilla/popcorn-js — pull request #57 by stanica (2012-05-08 16:35:01+00:00)
Title: [1036] 1. Allow Popcorn.smart to accept targets without '#'.

2. Throws meaningful error when target is invalid or not found.

I modified Popcorn.smart and playerFn to use Popcorn.dom.find instead of the previously used regular expression. I also made it throw a meaningful error when the target of Popcorn.smart is invalid or nonexistent. Also added qunit test to check for invalid targets.

https://webmademovies.lighthouseapp.com/projects/63272/tickets/1036