'Prototype.js'에 해당되는 글 1건

  1. 2007.04.17 prototype $A is not defined, error 처리

$A is not defined
return __method.apply(object, args.concat($A(arguments))

위와 같은 에러가 날때가 있다
(firebug 에서 prototype.js 를 쓸 때)

아래 처럼 패치하면 된다
     52 Function.prototype.bindAsEventListener = function(object) {
     53   var __method = this;
     54   return function(event) {
     55     if(typeof($A) == 'function'){ // <-- Added Firefox Fix
     56       return __method.call(object, event || window.event);
     57     }
     58   }
     59 }

출전은
http://www.skybyte.net/articles/prototype.js/