Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove trailing comma for pointer_events #469

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

Open
bfarka opened this issue Nov 21, 2014 · 0 comments
Open

Remove trailing comma for pointer_events #469

bfarka opened this issue Nov 21, 2014 · 0 comments

Comments

@bfarka
Copy link

bfarka commented Nov 21, 2014

Our static code analysis tool detected a trailing comma for the pointer_events

BAD:

    fn.events = function() {
        this.pointer_events = {
            start: this.nsEvent('touchstart') + ' ' + this.nsEvent('mousedown'),
            move: this.nsEvent('touchmove') + ' ' + this.nsEvent('mousemove'),
            end: this.nsEvent('touchend') + ' ' + this.nsEvent('mouseup'),
        };

GOOD:

    fn.events = function() {
        this.pointer_events = {
            start: this.nsEvent('touchstart') + ' ' + this.nsEvent('mousedown'),
            move: this.nsEvent('touchmove') + ' ' + this.nsEvent('mousemove'),
            end: this.nsEvent('touchend') + ' ' + this.nsEvent('mouseup')
        };

image

bfarka pushed a commit to bfarka/gridster.js that referenced this issue Nov 21, 2014
remove trailing comma to be more IE compliant
dsmorse pushed a commit to dsmorse/gridster.js that referenced this issue Apr 8, 2015
ciprianmiclaus pushed a commit to ciprianmiclaus/gridster.js that referenced this issue Feb 28, 2016
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

1 participant