"TypeError: (intermediate value)(...) is not a function" appears due to the lack of a half-column in the function before it causes an error. It could be that simple:
jQuery(function($){$(document).ready(function(){ $('textarea').autosize(); } );
or it may be a function declared before that. An example of this in this code:
var populate = function(sw) { myglobalswitch = sw; window.setTimeout(repopulate, 250, sw); } (function( $ ) { $.widget( "custom.combobox", { _create: function() { .... })( jQuery );
results in an intermediate value not ... in the last line: })( jQuery );
However, the fix adds a half-hour to the function being populated:
var populate = function(sw) { myglobalswitch = sw; window.setTimeout(repopulate, 250, sw); } ;
so that the browser does not think that "var populate = ..." and (function ($) ... are one operator, the second from the first.
ppostma1 Aug 20 '14 at 18:51 2014-08-20 18:51
source share