CouchDB
  1. CouchDB
  2. COUCHDB-1474

jquery.couch.js: cleanup assignment for user_doc.type

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: Futon
    • Labels:
      None
    • Environment:

      Debian/testing

      Description

      The source code for jquery.couch.js in 1.2 and git master contains:

      user_doc.type = user_doc.type = "user" || [];

      in the signup() method. This code makes little sense; thankfully it is equivalent to the old prepareUserDoc() code:

      user_doc.type = "user";

      but the extraneous assignment and test should be removed.

        Activity

        Stéphane Alnet created issue -
        Jan Lehnardt made changes -
        Field Original Value New Value
        Fix Version/s 1.4 [ 12323451 ]
        Fix Version/s 1.2.1 [ 12319457 ]
        Dirkjan Ochtman made changes -
        Fix Version/s 1.4 [ 12323451 ]
        Andy Wenk made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Stéphane Alnet
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development