You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Patrick Mueller <pm...@gmail.com> on 2014/03/07 03:14:11 UTC

Re: [jira] [Commented] (CB-6161) [weinre] not working with angular-seed

Wanna try something?  Include the following function, and run it early on
your page.  It may narrow the scope of the error checking, so that you can
see >some< of the styles.  No idea if it will actually work or not though.


function whackWebkitMatchesSelector() {
    var oldMatches = Element.prototype.webkitMatchesSelector

    function newMatches(selector) {
        try {
            return oldMatches.call(this, selector)
        }
        catch (err) {
            return false
        }
    }

    Element.prototype.webkitMatchesSelector = newMatches
}

whackWebkitMatchesSelector()



On Thu, Mar 6, 2014 at 8:46 AM, Martin Spierings (JIRA) <ji...@apache.org>wrote:

>
>     [
> https://issues.apache.org/jira/browse/CB-6161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13922512#comment-13922512]
>
> Martin Spierings commented on CB-6161:
> --------------------------------------
>
> I'm looking to debug the app on mobile devices. They will then be included
> in a phonegap app. But i also need to make it run on older Android devices
> and they don't have any other means of debugging. For new android devices,
> ios and windows phone devices i already know on how to debug them so that
> doesn't really matter much but those older android devices are very
> difficult to debug otherwise.
>
> Thanks for taking the time to find the problem. Its something i noticed a
> while ago when i was trying to find out what styles a button did and did
> not have on certain devices.
>
> > [weinre] not working with angular-seed
> > --------------------------------------
> >
> >                 Key: CB-6161
> >                 URL: https://issues.apache.org/jira/browse/CB-6161
> >             Project: Apache Cordova
> >          Issue Type: Bug
> >          Components: weinre
> >            Reporter: Patrick Mueller
> >            Assignee: Patrick Mueller
> >
> > Run angular-seed demo with these directions:
> > {noformat}
> > git clone https://github.com/angular/angular-seed.git
> > cd angular-seed
> > npm install
> > scripts/web-server.js
> > {noformat}
> > If you instrument the {{app/index.html}} file with weinre, and then view
> with weinre, you won't see any style information.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.2#6252)
>



-- 
Patrick Mueller
http://muellerware.org