good eye, Ricardo! thanks for the back up. :-)
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote:
You're missing a parenthesis when closing the anonymous function:
}(); should be })();
And I'm guessing '$' is there for jQuery, so that should actually be
})(jQuery);
- ricardo
On Jan 13, 3:56 pm, "Sagar Arya" <sagararya...@gmail.com> wrote:
may be i should check with the other files and let you know...
thanks for
the information..
Cheers !
Aryan
On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg
<k...@englishrules.com>wrote:
I'm not seeing anything obvious. Taking a stab in the dark
here ... I've
received a similar error in the past when a reference to one of my
JavaScript files was resulting in a 404. The browser would try to
parse the
file as JavaScript, but of course it would be met with a syntax
error on
line 1. Is it possible that the problem is not with this file,
but with
another one that you're trying to include? Just a guess.
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 13, 2009, at 5:35 AM, Aryan wrote:
I have a problem with Internet Explorer ( all versions ) . The
following is my JQuery Code , which executes perfectly in mozilla
and
chrome.. But it doesn't work in Internet Explorer.
It says : Syntax error ( line 1 )... Can anyone help me out here..
Thanks for your time in reading this.
(function($){
var EYE = window.EYE = function() {
var _registered = {
init: []
};
return {
init: function() {
$.each(_registered.init, function(nr, fn){
fn.call();
});
},
extend: function(prop) {
for (var i in prop) {
if (prop[i] != undefined) {
this[i] = prop[i];
}
}
},
register: function(fn, type) {
if (!_registered[type]) {
_registered[type] = [];
}
_registered[type].push(fn);
}
};
}();
$(EYE.init);
})(jQuery);