From 46b8915eb0b0b38ae47d110ab6ef0d2d893113a7 Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 23 Oct 2013 08:16:12 -0400 Subject: Position: Wrap everything in an IIFE to avoid name collisions when the build strips the main closure. --- ui/jquery.ui.position.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 21c3cef1b..15f168927 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -9,6 +9,7 @@ * http://api.jqueryui.com/position/ */ (function( $, undefined ) { +(function() { $.ui = $.ui || {}; @@ -494,4 +495,5 @@ $.ui.position = { testElementParent.removeChild( testElement ); })(); +})(); }( jQuery ) ); -- cgit v1.2.3