mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removing unused thirdparty dependency - jquery-effen.
This commit is contained in:
parent
beb32e2cb9
commit
8ac92ffcf9
31
thirdparty/jquery-effen/jquery.fn.js
vendored
31
thirdparty/jquery-effen/jquery.fn.js
vendored
@ -1,31 +0,0 @@
|
||||
(function($) {
|
||||
$.fn.fn = function() {
|
||||
var self = this;
|
||||
var extension = arguments[0], name = arguments[0];
|
||||
if (typeof name == "string") {
|
||||
return apply(self, name, $.makeArray(arguments).slice(1, arguments.length));
|
||||
} else {
|
||||
$.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;
|
||||
}
|
||||
})(jQuery);
|
Loading…
Reference in New Issue
Block a user