rpflorence/snack — Issue #28: snack.wrap on non-existent element returns length of 1
Author: jenshedqvist
Created: 2012-02-27 16:28:20+00:00
State: open

When I run snack.wrap on an element that doesn't exist in the DOM I expect it to return an object with length of zero (0). Alternatively "undefined". This is needed to test if an element exists.

This is what I get when I run snack.wrap on an non-existent element today:

```
0 []

id 16

length 1

addClass function()

attach function()

data function()

delegate function()

detach function()

each function()

fire function()

removeClass function()

```