# AJAX Issue

**URL:** <https://www.ruby-forum.com/t/ajax-issue/133560>\
**Category:** Rails\
**Created:** [April 1, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/ajax-issue/133560 "2008-04-01T17:41:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bparanj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Post date:** [April 1, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/ajax-issue/133560/1 "2008-04-01T17:41:45Z")

</div>

The AJAX call works fine in development mode but in production has  
issues.

The handler.call line in the following method is throwing error in the  
JavaScript console:

Error: handler has no properties

Source File: [http://mydomain.com/javascripts/all.js?1202672432](http://mydomain.com/javascripts/all.js?1202672432)  
Line: 3883

function createWrapper(element, eventName, handler) {  
var id = getEventID(element);  
var c = getWrappersForEventName(id, eventName);  
if (c.pluck(“handler”).include(handler)) return false;

```
var wrapper = function(event) {
  if (!Event || !Event.extend ||
    (event.eventName && event.eventName != eventName))
      return false;

  Event.extend(event);
  handler.call(element, event)
};

```

## Does anyone encountered this before? TIA.

[http://www.rubyplus.org/](http://www.rubyplus.org/)  
Free Ruby and Rails Screencasts
