Browse files

fix for safari

  • Loading branch information...
1 parent 51842de commit 4f0bafef515390c90d6abe1e54d1a78bad9be97b Nick Kallen committed Apr 17, 2008
Showing with 13 additions and 13 deletions.
  1. +13 −13 jquery.fn.js
View
26 jquery.fn.js
@@ -1,17 +1,17 @@
(function($) {
- $.fn.fn = function() {
- var self = this;
- var extension = 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) {
+ $.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) {

0 comments on commit 4f0bafe

Please sign in to comment.