jquery - IE10 looking for commented out javascript method -
i have web app running in ie10 , user has reported following problem (just curious, why error message generated internet explorer "user agent: mozilla/4.0" ?):
user agent: mozilla/4.0 (compatible; msie 7.0; windows nt 6.1; wow64; trident/6.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; .net4.0c; .net4.0e; infopath.3) timestamp: thu, 18 jun 2015 21:56:43 utc message: object doesn't support property or method 'iamcommentedout' line: 42 char: 9 code: 0 uri: http://some.server/dir1/dir2/script1.js
which seems pretty straightforward.
until @ code , find place iamcommentedout occurs string in log message , in comment
it javascript method used in previous version of app.
in current version, has been removed
script2.js
/*self.iamalsocommentedout = function(){ other stuff }; self.iamcommentedout = function(){ stuff };*/
script2.js contain other, non commented out methods , object defined in script2.js instantiated , used in script1.js
so related.
however cannot duplicate this. when run same app same server on same os (windows 7) using same browser (ie10) error not occur.
what on earth cause behavior?
(fyi i'm using jquery 1.4.3)
you have problem cached version of other script being used.
Comments
Post a Comment