wilkerlucio/jcheck — Issue #3: minify js error on IE
Author: Zenzumai
Created: 2012-02-14 14:33:30+00:00
State: open

Hello,

I'm using the version 0.7.1 of jcheck. That's generate a error message on IE.

Error message : "Stack overflow at line: 52"
Line 52 Caracter 1317 :

(function($) {
$.FormCheck.Notifiers = {};
$.FormCheck.Notifiers.create = function(name, object, base) {
var class_name, notifier;
object = $.extend({
constructor : function() {
},
focus : function() {
return this.notify.apply(this, arguments);
},
blur : function() {
},
notify : function() {
}
}, object || {});
base = (typeof base !== "undefined" && base !== null) ? base
: $.FormCheck.Notifiers.Base;
class_name = name.camelize() + "Notifier";
notifier = function() {
notifier.__superClass__.constructor.apply(this, arguments);
this.constructor.apply(this, arguments);
return this;
};
__extends(notifier, base);
$.extend(notifier.prototype, object);
notifier.kind = name;
$.FormCheck.Notifiers[class_name] = notifier;
return notifier;

There is a recursive function never stops.

notifier = function() {
notifier.__superClass__.constructor.apply(this, arguments);
this.constructor.apply(this, arguments);
return this;
};

Any idea ?

Thanks.