spine-rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +0,0 @@
1
- (function() {
2
- var $;
3
-
4
- $ = typeof jQuery !== "undefined" && jQuery !== null ? jQuery : require("jqueryify");
5
-
6
- $.fn.item = function() {
7
- var item;
8
- item = $(this);
9
- item = item.data("item") || (typeof item.tmplItem === "function" ? item.tmplItem().data : void 0);
10
- if (item != null) if (typeof item.reload === "function") item.reload();
11
- return item;
12
- };
13
-
14
- $.fn.forItem = function(item) {
15
- return this.filter(function() {
16
- var compare;
17
- compare = $(this).item();
18
- return (typeof item.eql === "function" ? item.eql(compare) : void 0) || item === compare;
19
- });
20
- };
21
-
22
- }).call(this);