November 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Category Archives: bugs
Chrome Extension with React – gotcha
I’m rebuilding my Chrome Extension Tab List to use ReactJS (as part of my learning trip) and encountered following error: Uncaught EvalError: Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the … Continue reading
Posted in bugs, JavaScript, ReactJS
Tagged bugs, chrome, chrome-extension, content_security_policy, eval, evil-eval, reactjs
Comments Off on Chrome Extension with React – gotcha
The parseCSS of StyleSheet silently fails
Hi, when you use the parseCSS method of the StyleSheet, you will have no indication about success of the invocation. When passed string contains invalid CSS text then this method will silently fails. The workaround is to compare the lenght … Continue reading
Posted in actionscript, bugs, flash
Tagged flash css, parseCSS, styleNames, StyleSheet
Comments Off on The parseCSS of StyleSheet silently fails
The String’s replace method and ArgumentError: Error #1063: Argument count mismatch error
Hi, recently I have upgraded flash player (11.1.102.55), and suddenly found that one of my components was throwing following error: ArgumentError: Error #1063: Argument count mismatch on Main/removeLinkStyleClass(). Expected 0, got 6. at String$/_replace() at String/http://adobe.com/AS3/2006/builtin::replace() at Main/init()[…\bugs\string_replace\src\Main.as:27] at Main()[…\bugs\string_replace\src\Main.as:16] … Continue reading
Posted in actionscript, bugs, flash
Tagged actionscript3, Argument count mismatch, ArgumentError, bugs, Error #1063, flash
1 Comment
Rectangle class, equals method returns incorrect value
Hi, recently I’ve used Rectangle’s equals() method and found that it incorrectly returns false when both rectangles are the same. Problem occurs when any of the properties of the Rectangle are NaN (not a number).
Posted in actionscript, bugs, flash
Tagged actionscript3, equals, NaN, rectangle, snippets
1 Comment