Tuesday, February 23, 2016

Uncaught TypeError: func is not a function in init.debug.js

Dear All,

I was facing "Uncaught TypeError: func is not a function" issue when browsing my SharePoint 2010 

site and due to this all the functions in my ribbon was not working.

Whenever I am clicking on ribbon items it always show me loading as shown below  

After digging more in to the issue I found that, in my Javascript code I have written 


In the above syntax the '()' after init method was creating the problem.

I replace above syntax with 


and ribbon start working as expected.

Hope this post will save your time.

Sachin K.