PDA

View Full Version : Error: missing ; before statement



philance
30 Mar 2012, 2:37 PM
Bros,

I intermittently has the following error:

Error: missing ; before statement
Source File: js/Modules/Module.js
Line: 21, Column: 9
Source Code:
HTTP/1.1 200 OK

After I restart Firefox, it's okay. but after awhile it comes back, then restart Firefox, it's okay again.

Module.js is pretty simple:

Ext.define('Ext.ux.TheApp.Module', {
mixins: {
observable: 'Ext.util.Observable'
},

constructor: function (config) {
this.mixins.observable.constructor.call(this, config);
this.init();
},

init: Ext.emptyFn
});

Please help. Would appreciate it a lot.

scottmartin
30 Mar 2012, 4:05 PM
Looks fine at first glance. I would suspect you have a syntax error somewhere else. Perhaps a misplaced comma or lack of ; somewhere else in your code.

Regards,
Scott.

philance
31 Mar 2012, 1:31 AM
The strange thing is that: once I restart browser, everything is okay without any error at all; then after few refresh, that error come up again; then restart browser, things are fine again ... Not sure any of you encounter this before :( ... :s