javascript - How to rename a jQuery plugin -


i working on custom control used in many others application. control contains own resources include jquery , other plugins' scripts required control. problem arises when control inserted in application has same plugins' javascripts included. have made changes scripts in control, name conflicts, when javascript function called initializing plugins, uses scripts in project rather control's resources. resolving this, thought changing string "abc" (as use mycontrol.abc() in code)in plugin script it, not working. changing string "abcde" , using mycontrol.abcde() gives error "has no method 'abcde' ". trying rename tokeninput script. below code, please suggest changes should initialize control tokeninputes instead of tokeninput.

i couldnt copy code, script can found @

https://github.com/loopj/jquery-tokeninput/zipball/jquery-tokeninput-1.6.0

change line 123:

$.fn.tokeninput = ... 

into

$.fn.yourname = ... 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -