[jQuery] Interface Slide bug

2006-09-27 Thread Carlos Aguayo

Using the 'SlideInDown' from 'Interface':
http://interface.eyecon.ro/demos/ifxslide.html
If I have a container absolute positioned, and instead of using 'top' and
'left' properties, I use 'right' and 'bottom', so the container attaches to
the bottom right of the screen, the slide breaks. 
It still slides the container, however, it positions it in the top left
corner of the screen.
-- 
View this message in context: 
http://www.nabble.com/Interface-Slide-bug-tf2347586.html#a6536253
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] bug when using Object.prototype ?

2006-09-22 Thread Carlos Aguayo
Hi everyone,
If I attach a function to Object.prototype outside the
$(document).ready function, it gets executed when I load the page, is
this a bug?

Example:

html
head
%@ include file=/jquery/jquery-1.0.1.js %
meta http-equiv=content-type content=text/html /
/head
body

script type=text/javascript
Object.prototype.foo = function(){
  alert('foo');
};
/script
/body
/html

I get the alert as soon as the page gets loaded, if I move it inside a
$(document).ready function, everything is fine then.

Carlos

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] bug when using Object.prototype ?

2006-09-22 Thread Carlos Aguayo

I noticed this behavior when I was playing with a deep cloning utility that I
found at:
http://www.bigbold.com/snippets/posts/show/749
so I just wanted to report it.
But yes, there has to do deep cloning, thanks!
Carlos


John Resig wrote:
 
 It has to do with the fact that extending the Object.prototype has
 negative consequences in almost all JavaScript code, regardless of the
 library. The only way to iterate through the properties of an object
 is by doing:
 
 for ( var prop in obj )
 
 and your 'foo' method will be included in every single one. What
 result are you trying to achieve by extending the Object prototype?
 There's most likely a better way to do what you're attempting to
 achieve.
 
 --John
 
 On 9/22/06, Carlos Aguayo [EMAIL PROTECTED] wrote:
 Hi everyone,
 If I attach a function to Object.prototype outside the
 $(document).ready function, it gets executed when I load the page, is
 this a bug?

 Example:

 html
 head
 %@ include file=/jquery/jquery-1.0.1.js %
 meta http-equiv=content-type content=text/html /
 /head
 body

 script type=text/javascript
 Object.prototype.foo = function(){
   alert('foo');
 };
 /script
 /body
 /html

 I get the alert as soon as the page gets loaded, if I move it inside a
 $(document).ready function, everything is fine then.

 Carlos

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

 
 
 -- 
 John Resig
 http://ejohn.org/
 [EMAIL PROTECTED]
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/bug-when-using-Object.prototype---tf2320206.html#a6455780
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Running jQuery when already have $() from prototype

2006-09-21 Thread Carlos Aguayo
Hi everyone,
Is there any update with the issue of using the dollar function $ from
prototype when migrating to jQuery?
Thanks!
Carlos

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/