core/lib/jquery.fn.js in btakita-screw-unit-server-0.3.0 vs core/lib/jquery.fn.js in btakita-screw-unit-server-0.6.0

- old
+ new

@@ -8,20 +8,21 @@ $.each(extension, function(key, value) { define(self, key, value); }); return self; } - } + }; function define(self, name, fn) { self.data(namespacedName(name), fn); }; function apply(self, name, args) { var result; self.each(function(i, item) { var fn = $(item).data(namespacedName(name)); if (fn) result = fn.apply(item, args) else throw(name + " is not defined"); }); + return result; }; function namespacedName(name) { return 'fn.' + name; } \ No newline at end of file