[jbosstools-issues] [JBoss JIRA] (JBIDE-13997) jQuery Mobile code assist doesn't work if jQuery Mobile libs are loaded by Modernizr.load()

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Thu Apr 11 16:02:55 EDT 2013


Alexey Kazakov created JBIDE-13997:
--------------------------------------

             Summary: jQuery Mobile code assist doesn't work if jQuery Mobile libs are loaded by Modernizr.load()
                 Key: JBIDE-13997
                 URL: https://issues.jboss.org/browse/JBIDE-13997
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: jsp/jsf/xml/html source editing
    Affects Versions: 4.1.0.Alpha2
            Reporter: Alexey Kazakov
            Assignee: Alexey Kazakov
             Fix For: 4.1.0.Beta1


We enable jQuery mobile code assist only if there is jQuery-mobile-* reference in <head>
We should enable this code assist if Modernizr.load() loads jQuery Mobile libs too. For example index.html page from jboss-as-kitchensink-html5-mobile uses Modernizr.load():
{code}
    <script type="text/javascript">
        Modernizr.load([{
            load: [
                "http://code.jquery.com/jquery-1.7.1.min.js",
                "js/libs/underscore-min.js",
                // Minification - See Readme for details
                // For minification, comment out this file
                "js/app.js"
                // For minification, uncomment this file
                // "js/app.min.js"
            ]...
    </script>
{code}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list