Is this line right? Modalize references "Browser.trident4"?

3 views
Skip to first unread message

Offroadcode

unread,
Jun 23, 2009, 11:46:27 AM6/23/09
to Clientcide
In modalize there is a check on the Browser object of Moo that does
not seem to exist? See line 4 below.

modalShow: function(options){
this.setModalOptions(options);
this.layer().setStyles(this.setModalStyle
(this.modalOptions.modalStyle));
if (Browser.Engine.trident4) this.layer().setStyle
('position','absolute'); // <--- This this line correct or a typo?
this.layer().removeEvents('click').addEvent('click', function(){
this.modalHide(this.modalOptions.hideOnClick);
}.bind(this));
this.bound = this.bound||{};
if (!this.bound.resize && this.modalOptions.updateOnResize) {
this.bound.resize = this.resize.bind(this);
window.addEvent('resize', this.bound.resize);
}
if ($type(this.modalOptions.onModalShow) == "function")
this.modalOptions.onModalShow();
this.togglePopThroughElements(0);
this.layer().setStyle('display','block');
return this;
},

Is there such a thing as Browser.trident4? Firebug says no, wondering
if its a quick way of commenting out/a typo/some hidden feature I
can't find?

Philip Thompson

unread,
Jun 23, 2009, 1:06:55 PM6/23/09
to clien...@googlegroups.com
Browser.Engine.trident4 = IE6

It appears to be correct. What browser are you using? Firebug in
Firefox or Firebug Lite in IE?

~Phil

Aaron Newton

unread,
Jun 23, 2009, 1:27:01 PM6/23/09
to clien...@googlegroups.com
note that it's not defined if you AREN'T in IE. so if you're looking in firebug, it shouldn't be there.

Offroadcode

unread,
Jul 13, 2009, 7:41:13 AM7/13/09
to Clientcide
Ahh, my eyes playing tricks. Was expecting it to be true/false not
undefined (which of course is also false). Thanks for the
clarification.
Reply all
Reply to author
Forward
0 new messages