Permalink
Browse files

MooTools Browser.engine is deprecated (see #3994)

  • Loading branch information...
leofeyer committed Apr 13, 2012
1 parent 8b62121 commit 69fd9f17d38838e524115391eaf0c5f68238d944
@@ -166,4 +166,3 @@ Tips.Contao = new Class(
this.tip.setStyles(obj);
}
});
-
@@ -84,11 +84,13 @@ var Stylect =
div.removeClass('focused');
}).setStyle('opacity', 0);
+ Browser.webkit = (Browser.chrome || Browser.safari || navigator.userAgent.match(/(?:webkit|khtml)/i));
+
// Browser-specific adjustments
- if (Browser.Engine.webkit) {
+ if (Browser.webkit) {
el.setStyle('margin-bottom', '4px');
}
- if (Browser.Engine.webkit || Browser.Engine.trident) {
+ if (Browser.webkit || Browser.ie) {
div.setStyle('width', div.getStyle('width').toInt()-4);
}
});

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -708,8 +708,8 @@ var Backend =
*/
openWindow: function(el, width, height) {
el.blur();
- width = Browser.Engine.trident ? (width + 40) : (width + 17);
- height = Browser.Engine.trident ? (height + 30) : (height + 17);
+ width = Browser.ie ? (width + 40) : (width + 17);
+ height = Browser.ie ? (height + 30) : (height + 17);
Backend.popupWindow = window.open(el.href, '', 'width='+width+',height='+height+',modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');
},
@@ -1002,7 +1002,7 @@ var Backend =
var status = (textarea.getProperty('wrap') == 'off') ? 'soft' : 'off';
textarea.setProperty('wrap', status);
- if (!Browser.Engine.trident) {
+ if (!Browser.ie) {
var v = textarea.value;
var n = textarea.clone();
n.setProperty('wrap', status);

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 69fd9f1

Please sign in to comment.