]> source.dussan.org Git - jquery.git/commitdiff
Reintroduced .offset() as a default include, added original author credits.
authorJohn Resig <jeresig@gmail.com>
Sat, 8 Sep 2007 18:02:39 +0000 (18:02 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 8 Sep 2007 18:02:39 +0000 (18:02 +0000)
Makefile
build.xml
src/offset.js

index 59902a698612446a077d2f2ae18dd230d6db54de..64dd418beaae5a79185e70a3d821ba0bd8926406 100644 (file)
--- 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/*\
index 3344904416608cd06b71b4f216bd2c99172d1de0..89d4fea5634279e8413e8020a81cdeca9cbe8832 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -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>
index 6289ad29320be3c07e295fbffa80f8dfdada84c6..674338ecbf0397a75ccc44c56f4990bc33387055 100644 (file)
@@ -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;