8000 JSlint errors left · Issue #1 · masuidrive/ti-websocket-client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
JSlint errors left #1
Open
Open
@Hilko-Lantinga

Description

@Hilko-Lantinga

First of all, great work!!! I'm really looking forward to see this integrated with socket.io.
I've seen that you've fixed some JSlint errors, I've found some more:

You're creating arrays like this:
var words = new Array(size);
JSlint recommends using array literal notation, and javascript doesn't need an array size, it will be incremented automatically.

So you could just do:
var words = [];

Besides that there are some variable undefined (j, _base64_keyStr, str, reason)
And some node.js/browser methods left that should be replaced with titanium methods (console.error, console.trace)
And some comma's that should be remove (behind type: Ti.Codec.TYPE_BYTE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0