How to add some extra tasks to a function of a library file (ex : Jquery Tag-it) without changing the source file
which is gonna perform by adding that library file rather than calling that function
How to add some extra tasks to a function of a library file (ex : Jquery Tag-it) without changing the source file
which is gonna perform by adding that library file rather than calling that function
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jefferson S. MottaRank #207 · 11.7K reputationPosted Jan 26, 2023, 9:39 AM EST
You cannot change the source file which is gonna performed by adding that library. But you can wrap it with your function. Just like:
var createTag = (function(i){ return $("#myTags").tagit("createTag", i); })("userInput");