aboutsummaryrefslogtreecommitdiffstats
path: root/demos/position/cycler.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-01-07 03:19:50 +0000
committerScott González <scott.gonzalez@gmail.com>2010-01-07 03:19:50 +0000
commit90fb45dffafc2e891b1ebca948ad33e6b94de112 (patch)
tree6bd09ea116ef2cdd86ec0fa70bf740617f67d441 /demos/position/cycler.html
parent975b02a82cdff29fd8469bfe4324472c2ae3f954 (diff)
downloadjquery-ui-90fb45dffafc2e891b1ebca948ad33e6b94de112.tar.gz
jquery-ui-90fb45dffafc2e891b1ebca948ad33e6b94de112.zip
Merged in /branches/dev r3251:3620 (excluding autocomplete, modal, tooltip, menu; including menu static tests).
Diffstat (limited to 'demos/position/cycler.html')
-rw-r--r--demos/position/cycler.html15
1 files changed, 7 insertions, 8 deletions
diff --git a/demos/position/cycler.html b/demos/position/cycler.html
index 20ef6cd39..3fd150662 100644
--- a/demos/position/cycler.html
+++ b/demos/position/cycler.html
@@ -6,7 +6,6 @@
<script type="text/javascript" src="../../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
@@ -23,7 +22,7 @@
$.fn.position2 = function(options) {
return this.position($.extend({
of: window,
- by: function(to) {
+ using: function(to) {
$(this).css({
top: to.top,
left: to.left
@@ -33,27 +32,27 @@
}, options));
}
- $.fn.left = function(by) {
+ $.fn.left = function(using) {
return this.position2({
my: "right middle",
at: "left middle",
offset: "25 0",
- by: by
+ using: using
});
}
- $.fn.right = function(by) {
+ $.fn.right = function(using) {
return this.position2({
my: "left middle",
at: "right middle",
offset: "-25 0",
- by: by
+ using: using
});
}
- $.fn.center = function(by) {
+ $.fn.center = function(using) {
return this.position2({
my: "center middle",
at: "center middle",
- by: by
+ using: using
});
};