Monday, February 20, 2012

a better posting on method calling with jasmine-jquery

This post on jasmine-jquery method calling was a little confusing for me when I tried to use it for my own reference. So, instead see the following:

var target = $('#portletwrapper');

var widget = target.Portlet();

var act = widget.Portlet('setup', false);

 
 

That calls this method:

setup: function (defaultStateIsOpen) {

   var self = this;

   
more code here...

},

No comments:

Post a Comment