]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add deprecation notice to GetOffsets
authorKevin Ball <kmball11@gmail.com>
Thu, 25 May 2017 04:30:58 +0000 (21:30 -0700)
committerKevin Ball <kmball11@gmail.com>
Thu, 25 May 2017 04:30:58 +0000 (21:30 -0700)
js/foundation.util.box.js

index 7e989e75cfb75630b5cb97b2396902039692afba..ba960eafd99ffbe7df4e923f184d864987ca946f 100644 (file)
@@ -120,6 +120,7 @@ function GetDimensions(elem, test){
  * TODO alter/rewrite to work with `em` values as well/instead of pixels
  */
 function GetOffsets(element, anchor, position, vOffset, hOffset, isOverflow) {
+  console.log("NOTE: GetOffsets is deprecated in favor of GetExplicitOffsets and will be removed in 6.5");
   switch (position) {
     case 'top':
       return Rtl() ?