# jRails, jQuery, Hide (4 arguments)

**URL:** <https://www.ruby-forum.com/t/jrails-jquery-hide-4-arguments/186042>\
**Category:** Rails\
**Created:** [March 30, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/jrails-jquery-hide-4-arguments/186042 "2010-03-30T20:04:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralphshnelvar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Post date:** [March 30, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/jrails-jquery-hide-4-arguments/186042/1 "2010-03-30T20:04:46Z")

</div>

Is this the right forum to post this to?

In jRails.js there is a call to  
hide  
in which hide takes four parameters.

Where is that hide defined?

---

<div class="post-metadata">

**Author:** ![ralphshnelvar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Post date:** [April 1, 2010, 10:11pm UTC](https://www.ruby-forum.com/t/jrails-jquery-hide-4-arguments/186042/2 "2010-04-01T22:11:15Z")

</div>

Ralph S. wrote:

> Is this the right forum to post this to?
> 
> In jRails.js there is a call to  
> hide  
> in which hide takes four parameters.
> 
> Where is that hide defined?

To answer my own question … so for the next poor schmuck who doesn’t  
know any Javascript …

Using firebug and the wonderful  
[http://jsbeautifier.org/](http://jsbeautifier.org/)  
to unminimize javascripts so that you can actually use Firebug to track  
through the code … one discovers that the hide is going to

hide: function () {  
if (!arguments[0] || (arguments[0].constructor == Number ||  
…  
},

The answer is that hide:function can take an arbitrary number of  
arguments. The value of the arguments is stored an array as a local  
variable called “arguments”

* * *

If anyone can point me to the reference that shows what the  
“hide:function” syntax is defined, I would be grateful.

---

<div class="post-metadata">

**Author:** ![ralphshnelvar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Post date:** [April 1, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/jrails-jquery-hide-4-arguments/186042/3 "2010-04-01T22:40:12Z")

</div>

On Thu, Apr 1, 2010 at 1:11 PM, Ralph S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > Is this the right forum to post this to?

Not really, but… 🙂

> Using firebug and the wonderful [http://jsbeautifier.org/](http://jsbeautifier.org/)  
> to unminimize javascripts so that you can actually use Firebug to track  
> through the code … one discovers that the hide is going to
> 
> hide: function () {  
> if (!arguments[0] || (arguments[0].constructor == Number ||  
> …  
> },

> The answer is that hide:function can take an arbitrary number of  
> arguments. The value of the arguments is stored an array as a local  
> variable called “arguments”

> If anyone can point me to the reference that shows what the  
> “hide:function” syntax is defined, I would be grateful.

I would think you’d be able to tell more from looking at the code of the  
function in question than from any doc, but  
[http://api.jquery.com/hide/](http://api.jquery.com/hide/)  
would be the place. Assuming this _is_ the jQuery ‘hide’ and not that of  
prototype.js 🙂

## HTH,

Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan
