Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'match' of null #7

Closed
hirasso opened this issue May 28, 2015 · 2 comments
Closed

Cannot read property 'match' of null #7

hirasso opened this issue May 28, 2015 · 2 comments

Comments

@hirasso
Copy link

hirasso commented May 28, 2015

Hi, wow, thank you!
Just noticed when dragging a group trough draggable(), the first time it logs an error:

Cannot read property 'match' of null
@bespired
Copy link

bespired commented Sep 1, 2015

115:
    startFnc = function(){
        if ( transform = group.getAttribute('transform') ){
            var transform = group.getAttribute('transform').match(/translate\(([^)]*)\)/);
            if(transform[1] !== undefined){
                var t = transform[1].split(" ");
                ox = parseInt(t[0]);
                oy = parseInt(t[1]);
            }
        }
    },

meszaros-lajos-gyorgy pushed a commit that referenced this issue Apr 13, 2016
@meszaros-lajos-gyorgy
Copy link
Owner

Thank you, added fix to the code. Closing ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants