Create a test without any FlexJS.  Just native JS that loads those
scripts.  Do you get the same error?  I think there is plenty of bad code
out there that "just works".

-Alex

On 1/15/17, 12:02 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
<carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote:

>Hi,
>
>I'm in the task of making the last MDL component "Dialog"
>As I said, it requires dialog-pollifil:
>
>https://github.com/GoogleChrome/dialog-polyfill
>
>So in the component constructor I'm using the urls here:
>
>https://cdnjs.com/libraries/dialog-polyfill
>
>In concrete:
>
>         /**
>  *  constructor.
>         *
>         *  <inject_html>
>         *  <script src="
>https://cdnjs.cloudflare.com/ajax/libs/dialog-polyfill/0.4.5/dialog-polyfi
>ll.min.js
>"></script>
>         *  <script src="
>https://cdnjs.cloudflare.com/ajax/libs/dialog-polyfill/0.4.5/dialog-polyfi
>ll.min.css
>"></script>
>         *  </inject_html>
>*
>*  @langversion 3.0
>*  @playerversion Flash 10.2
>*  @playerversion AIR 2.6
>*  @productversion FlexJS 0.0
>*/
>public function Dialog()
>{
>...
>
>That's working ok. As I instantiate a mdl:Dialog, I can see the links
>added
>to index.html
>
>The problem is that I'm getting an error in the browser:
>
>Uncaught SyntaxError: Unexpected token .
> dialog-polyfill.min.css:1
>
>I'm a little lost with this. Since I'm loading .js and .css latest 0.4.5 I
>suppose it should work. So maybe there's some processing in the loaded js
>and css that could introduce some error like this?
>
>I tried to load the non minified versions, but it reports errors as
>well.....
>
>Hope someone could figure what could be happen
>
>Thanks!
>
>
>-- 
>Carlos Rovira
>http://about.me/carlosrovira

Reply via email to