Mad_Griffith Posted December 10, 2016 Share Posted December 10, 2016 Hi, I'd like to extend a jQuery plugin after it has already been instantiated. In some file I cannot change I have: var defaults = { property1: 1, property2: 2 } $('#fullpage').fullpage(defaults); In a separate file I have: var defaultsExtended = { property2: 3 } var settings = $.extend({}, defaults, defaultsExtended); $('#fullpage').fullpage(settings); I was thinking about making the fullpage method NULL and unbinding everything, but how do I find a list of methods and properties that have been bound / added by a particular fullpage.js plugin's instance? Link to comment Share on other sites More sharing options...
Mad_Griffith Posted December 11, 2016 Author Share Posted December 11, 2016 (edited) I was able to use the destroy('all') method, as indicated here. Setting a method is apparently standard practice among jQuery plugin devs. Edited December 11, 2016 by Mad_Griffith Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now