In a big web project I would like to use a jQuery Plugins editable
which name is the same of the exiting one but have a different behaviour.
There is a clean way to rename the plugin? Maybe using require.js?
In a big web project I would like to use a jQuery Plugins editable
which name is the same of the exiting one but have a different behaviour.
There is a clean way to rename the plugin? Maybe using require.js?
- Edit the source code of one of the plugins. – Matt Ball Commented May 13, 2012 at 14:46
- you seem to need an additional parameter to the plugin – Toni Michel Caubet Commented May 13, 2012 at 14:46
- GIve us a link to the plugin. – Nikita Shekhov Commented May 13, 2012 at 14:50
- stackoverflow./questions/5740974/… – Ja͢ck Commented May 13, 2012 at 14:50
1 Answer
Reset to default 12You can rename the plugin like this:
<script src="jquery.js"></script>
<script src="firstplugin.js"></script>
<script>
$.fn.editableFirst = $.fn.editable;
</script>
<script src="secondplugin.js"></script>
editableFirst
should be something more meaningful to you.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742284313a4415052.html
评论列表(0条)