Jump to content

Extending jQuery plugin after instantiation?


Mad_Griffith

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...