The initial (function($) { was never closed. Here's how I formatted it so everything lines up:
(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); I think that's about the most obfuscated thing I've seen this week. I hope you're doing something cool. Let us know if that helps. On Jan 14, 11:57 pm, "Sagar Arya" <sagararya...@gmail.com> wrote: > Hello, I tried changing the braces.. It seems they were proper... > Here i am attaching all the files... Can anyone help me out pls... its > perfectly running in mozilla, chrome.. but not in IE.. :( > > Cheers ! > Sagar > > On Wed, Jan 14, 2009 at 12:08 PM, Sagar Arya <sagararya...@gmail.com> wrote: > > hey thanks so much.. :-) > > > Cheers ! > > Aryan > > > On Wed, Jan 14, 2009 at 10:26 AM, Karl Swedberg > > <k...@englishrules.com>wrote: > > >> 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); > > > > colorpicker.js > 22KViewDownload > > eye.js > < 1KViewDownload > > jquery.js > 136KViewDownload > > layout.js > 2KViewDownload > > utils.js > 9KViewDownload