https://bugzilla.wikimedia.org/show_bug.cgi?id=49990

       Web browser: ---
            Bug ID: 49990
           Summary: More tightly couple object model and interface model
                    in UploadWizard
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Keywords: javascript
          Severity: normal
          Priority: Unprioritized
         Component: UploadWizard
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
        Depends on: 49987
    Classification: Unclassified
   Mobile Platform: ---

While we have an UploadWizardUploadInterface class, its utility is somewhat
questionable, given that we still have myriad selectors for known elements
strewn around the code.

Ideally it would be commonplace to save an interface DOM element (or more
appropriately jQuery object) to an object when you create it, for example,
this.interface.details.$titleField is a lot simpler than $j( '#title_' + id ),
and way more readable. And it makes it easier to extend the project - once bug
49989 is fixed, we'll have sound documentation on all the available interface
objects as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to