How to rename jquery function. let's say I want to rename the JQuery draggble() user interface function to xdraggble() so that it does not conflict with another drag and drop function loaded from another library. Does renaming change performance.
draggble()
xdraggble()
Something like this, executed before loading the other script:
jQuery.fn.xdraggable = jQuery.fn.draggable;
var xdraggable = $.fn.draggable; //or var xdraggable = $.draggable;
(depending on implementation)
Same as you if you want to override a function, but still have access.
See this post regarding what I mean by redefining
Source: https://habr.com/ru/post/1342224/More articles:Easy way to compare values โโof more than three variables? - comparisonIs there an implementation of class interfaces for Smalltalk? - smalltalkHow to apply gcc patch - gccMakefile. How to exclude one specific file from compilation? - makefileJava: understanding String replaceAll () method - java3D rendering using Blender and Python - pythonHow can I get LINQ to return the index of the object with the maximum value in the collection? - c #SAS, create file name from dataset column - sasJavaMail - why do I sporadically get the StoreClosedException property when working with a folder? - javaWith emulator on Android Snapshot snapshot - androidAll Articles