<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Beautyindesign.com &#187; Extending</title>
	<atom:link href="http://beautyindesign.com/tag/extending/feed/" rel="self" type="application/rss+xml" />
	<link>http://beautyindesign.com</link>
	<description>Web Design and Development Training and Tutorials</description>
	<lastBuildDate>Mon, 06 Dec 2010 13:12:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Override Core jQuery Methods</title>
		<link>http://beautyindesign.com/blog/override-core-jquery-methods/</link>
		<comments>http://beautyindesign.com/blog/override-core-jquery-methods/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 19:41:24 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Extending]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://beautyindesign.com/?p=545</guid>
		<description><![CDATA[A recent conversation with some developers brought up a question I&#8217;d never contemplated before: Can jQuery core methods be overridden? Well, in short: Easily, yes! From perusing the web, it looks like there are several approaches to doing this. Below is an example I wrote up quickly, to test out the concept. jQuery.fn.extend({ // Override [...]]]></description>
			<content:encoded><![CDATA[<p>A recent conversation with some developers brought up a question I&#8217;d never contemplated before:  Can jQuery core methods be overridden?  Well, in short:  Easily, yes!</p>
<p>From perusing the web, it looks like there are several approaches to doing this.  Below is an example I wrote up quickly, to test out the concept.<br />
<span id="more-545"></span></p>
<pre name="code" class="javascript">
jQuery.fn.extend({
// Override the core hide() method
  hide : function() { alert('hide method overriden'); }
});</pre>
<p>And now to test it out:</p>
<pre name="code" class="javascript">
$('#test').click(function() {
     $(p).hide();
});</pre>
<p>When clicking on a link with an id=test, it will use my overridden method.  I know this isn&#8217;t a practical example, but does show how overriding jQuery core methods is possible!</p>
<p>Here&#8217;s another example (view the source): <a href="http://expressionindesign.com/files/jqueryOverride/jquery_override.html">http://expressionindesign.com/files/jqueryOverride/jquery_override.html</a></p>
<h4>Other References</h4>
<ul>
<li>A more complete <a href="http://www.bennadel.com/index.cfm?dax=blog:1624.view">example</a></li>
<li><a href="http://docs.jquery.com/Plugins/Authoring#Using_jQuery.extend_to_extend_jQuery_itself">jQuery Documentation Example</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://beautyindesign.com/blog/override-core-jquery-methods/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

