diff options
author | John Resig <jeresig@gmail.com> | 2007-09-08 18:02:39 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-09-08 18:02:39 +0000 |
commit | 15a78f8fea8679205bc734ec053ff24ebbfd31c8 (patch) | |
tree | 10f1158650390049d8978dd587457117e52dc51e | |
parent | 2929f8aa67584fc5fab05bdfae8a5b06245cacc7 (diff) | |
download | jquery-15a78f8fea8679205bc734ec053ff24ebbfd31c8.tar.gz jquery-15a78f8fea8679205bc734ec053ff24ebbfd31c8.zip |
Reintroduced .offset() as a default include, added original author credits.
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | build.xml | 1 | ||||
-rw-r--r-- | src/offset.js | 3 |
3 files changed, 6 insertions, 1 deletions
@@ -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/*\ @@ -50,6 +50,7 @@ <fileset dir="${SRC_DIR}" includes="event.js" /> <fileset dir="${SRC_DIR}" includes="ajax.js" /> <fileset dir="${SRC_DIR}" includes="fx.js" /> + <fileset dir="${SRC_DIR}" includes="offset.js" /> <fileset dir="${PLUGIN_DIR}" includes="${PLUGINS}" /> <fileset dir="${SRC_DIR}" includes="outro.js" /> </concat> 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; |