From 15a78f8fea8679205bc734ec053ff24ebbfd31c8 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 8 Sep 2007 18:02:39 +0000 Subject: [PATCH] Reintroduced .offset() as a default include, added original author credits. --- Makefile | 3 ++- build.xml | 1 + src/offset.js | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 59902a698..64dd418be 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ BASE_FILES = ${SRC_DIR}/core.js\ ${SRC_DIR}/selector.js\ ${SRC_DIR}/event.js\ ${SRC_DIR}/ajax.js\ - ${SRC_DIR}/fx.js + ${SRC_DIR}/fx.js\ + ${SRC_DIR}/offset.js PLUGINS = ${PLUG_DIR}/button/*\ ${PLUG_DIR}/center/*\ diff --git a/build.xml b/build.xml index 334490441..89d4fea56 100644 --- a/build.xml +++ b/build.xml @@ -50,6 +50,7 @@ + diff --git a/src/offset.js b/src/offset.js index 6289ad293..674338ecb 100644 --- a/src/offset.js +++ b/src/offset.js @@ -1,3 +1,6 @@ +// The Offset Method +// Originally By Brandon Aaron, part of the Dimension Plugin +// http://jquery.com/plugins/project/dimensions jQuery.fn.offset = function() { var left = 0, top = 0, elem = this[0], results; -- 2.39.5