r2840 - positionTo: Removed some unneccessary code.

r2840 - positionTo: Removed some unneccessary code.


Author: scott.gonzalez
Date: Thu Jun 25 10:14:19 2009
New Revision: 2840
Modified:
branches/dev/positionTo/ui/utils.positionTo.js
Log:
positionTo: Removed some unneccessary code.
Modified: branches/dev/positionTo/ui/utils.positionTo.js
==============================================================================
--- branches/dev/positionTo/ui/utils.positionTo.js    (original)
+++ branches/dev/positionTo/ui/utils.positionTo.js    Thu Jun 25 10:14:19 2009
@@ -8,31 +8,13 @@
* TODO: create document page for positionTo and add link here
*/
$.fn.positionTo = function(options){
- // set default values
- var defaults = {
+ options = $.extend({
my: 'left top',
at: 'left bottom',
offset: '0 0',
collisionDetect: 'flip',
stackFix: true
- };
-
- // add in defaults for any unspecified values
- options = $.extend({}, defaults, options);
-
- // if: the element to position against was not specified
- // then: we can't proceed with positioning, return an error condition
- if (options.of === undefined)
- {
- return false;
- }
-
- // !!! TODO: create a page resize handler to adjust the absolute
position of the positionable elements
- var handlers = {
- resize: function(){
-         // !!! TODO: implement page resizing handler
- }
- };
+ }, options);
var $targetElem = $(options.of);