jquery / jquery/api.jquerymobile.com

initSelector / all widgets

Open
#223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
55
Forks
57
PR merge metrics
No merged PRs in 30d

Description

jQM 1.4 API documentation should be fixed as the below doesn't work to set a new initSelector for any widget. On 1.4, initSelector is deprecated from options, however, the code in API doesn't work.

$.mobile.widget-name.prototype.initSelector = ".selector";

The below works by removing .prototype.

$.mobile.widget-name.initSelector = ".selector";

JSFiddle

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Find the jQM 1.4 API documentation entry for initSelector and compare its current example with the working syntax shown in the issue and JSFiddle. Update the documentation so the example uses the working form, then verify that the rendered API guidance no longer recommends the broken form.

Written by the indexing model from the issue text.

Assessment

Tech stack
jquery
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.