| javascript Programming Glossary: methodoroptionsHow to create a jQuery plugin with methods? http://stackoverflow.com/questions/1117086/how-to-create-a-jquery-plugin-with-methods  GOOD update function content  .fn.tooltip function methodOrOptions if methods methodOrOptions  return methods methodOrOptions .apply.. content  .fn.tooltip function methodOrOptions if methods methodOrOptions  return methods methodOrOptions .apply this Array.prototype.slice.call.. methodOrOptions if methods methodOrOptions  return methods methodOrOptions .apply this Array.prototype.slice.call arguments 1 else if typeof.. 
 jQuery plugin template - best practice, convention, performance and memory impact http://stackoverflow.com/questions/5980194/jquery-plugin-template-best-practice-convention-performance-and-memory-impac  methods here. .fn PLUGIN_NAME function String Object methodOrOptions  if methodOrOptions typeof methodOrOptions object  return publicMethods.init.call.. .fn PLUGIN_NAME function String Object methodOrOptions  if methodOrOptions typeof methodOrOptions object  return publicMethods.init.call.. String Object methodOrOptions  if methodOrOptions typeof methodOrOptions object  return publicMethods.init.call this methodOrOptions.. 
 |