Changes between Initial Version and Version 1 of Ticket #5972


Ignore:
Timestamp:
Aug 18, 2010, 8:17:35 PM (13 years ago)
Author:
Scott González
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5972

    • Property Component changed from ui.autocomplete to ui.widget
    • Property Summary changed from should issue warning or error when invoking the wrong method to Widget: Throw error for non-existant method calls
  • Ticket #5972 – Description

    initial v1  
    1 I recently had a line of code that did this:
    2 
    3     ed.autocomplete('options', {source: datasource});
    4 
    5 There were two things wrong with this code:
    6 
    7 1) The name of the autocomplete method to set an option is 'option', not the plural 'options'.
    8 
    9 2) Turns out that the "ed" element never had an autocomplete instance initialized on it in the first place, so trying to set options for it was in error.
    10 
    11 However jQueryUI didn't issue any sort of alert, warning, or error that I was doing something totally nonsensical.
     1$( el ).plugin( invalidMethod ) should throw an exception. Calling a method before initialization should throw an exception as well.