Permalink
Browse files

remove _scrollWidth function as it's not used anywhere

  • Loading branch information...
nyroDev committed Jan 16, 2013
1 parent 1ff1040 commit 5f67fde3f88aa2b5c5fb74f9fdbb87bc6540106c
Showing with 0 additions and 20 deletions.
  1. +0 −20 js/jquery.nyroModal.js
@@ -630,26 +630,6 @@ jQuery(function($, undefined) {
});
},

_scrollWidth: (function() {
var scrollbarWidth;
if ($.browser.msie) {
var $textarea1 = $('<textarea cols="10" rows="2"></textarea>')
.css({ position: 'absolute', top: -1000, left: -1000 }).appendTo($b),
$textarea2 = $('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>')
.css({ position: 'absolute', top: -1000, left: -1000 }).appendTo($b);
scrollbarWidth = $textarea1.width() - $textarea2.width();
$textarea1.add($textarea2).remove();
} else {
var $div = $('<div />')
.css({ width: 100, height: 100, overflow: 'auto', position: 'absolute', top: -1000, left: -1000 })
.prependTo($b).append('<div />').find('div')
.css({ width: '100%', height: 200 });
scrollbarWidth = 100 - $div.width();
$div.parent().remove();
}
return scrollbarWidth;
})(),

_selNyroModal: function(obj) {
return $(obj).data('nmObj') ? true : false;
},

0 comments on commit 5f67fde

Please sign in to comment.