Ticket #4515 (closed enhancement: notabug)

Opened 4 years ago

Last modified 4 years ago

how can I get an instance of an UI plugin?

Reported by: easonkie Owned by:
Priority: major Milestone: 1.8
Component: ui.core Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

I checked the code in ui.core.js in which it gets the instance of an ui-plugin in this way 'instance= $.data(this[0], name);'. However, how can I retrieve it in this condition?


var inst1 = $('#id123').plugin1();


Change History

comment:1 Changed 4 years ago by joern.zaefferer

  • Status changed from new to closed
  • Resolution set to invalid

$("#id123").data("plugin1");

Please post question like this to the discussion lists:  http://docs.jquery.com/Discussion

comment:2 Changed 4 years ago by rdworth

  • Milestone changed from 1.7.2 to 1.8
Note: See TracTickets for help on using tickets.