Javascript Scoping Issue Using Jquery Boilerplate
I am using the JQuery Boilerplate to write my first JQuery plugin - a responsive carousel. I am using another plugin (SSM - http://www.simplestatemanager.com/) to create states for
Solution 1:
It's an object literal so createCarousel
is not defined, Plugin.prototype.createCarousel
is, or in the scope you are in, this.createCarousel();
onEnterDesktop: function (){
console.log("You've entered desktop screen dimension territory");
var itemsPerPage = 3;
Plugin.prototype.createCarousel();
},
Post a Comment for "Javascript Scoping Issue Using Jquery Boilerplate"