AJAX Issue

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

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
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;

  handler.call(element, event)

Does anyone encountered this before? TIA.

Free Ruby and Rails Screencasts

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs