<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -59,12 +59,14 @@
 				// Create the function to get data
 				// TODO It'd be nice to do the options.data check once (a la boostPeriod)
 				function getdata() {
-					var toSend = ajaxSettings;
+					var toSend = jQuery.extend(true, {}, ajaxSettings); // jQuery screws with what you pass in
 					if(typeof(options.data) == 'function') {
-						var toSend = jQuery.extend(true, toSend, { });
 						toSend.data = options.data();
 						if(toSend.data) {
-							toSend.data = toSend.data.toString();
+							// Handle transformations (only strings and objects are understood)
+							if(typeof(toSend.data) == &quot;number&quot;) {
+								toSend.data = toSend.data.toString();
+							}
 						}
 					}
 					$.ajax(toSend); </diff>
      <filename>jquery.periodicalupdater.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>93a5f6d53fcee9790409e87251c4d49995f6c5e5</id>
    </parent>
  </parents>
  <author>
    <name>Robert Fischer</name>
    <email>robert.fischer@smokejumperit.com</email>
  </author>
  <url>http://github.com/RobertFischer/JQuery-PeriodicalUpdater/commit/b8f08f5f1f7d95631dd5271c2e6eccffc9878198</url>
  <id>b8f08f5f1f7d95631dd5271c2e6eccffc9878198</id>
  <committed-date>2009-11-05T15:34:11-08:00</committed-date>
  <authored-date>2009-11-05T15:34:11-08:00</authored-date>
  <message>jQuery screws around with the settings you pass in, which means you can't hold onto the same settings through multiple usages.</message>
  <tree>659e39761de109fdb1316fd2bb80c3a0193ed2aa</tree>
  <committer>
    <name>Robert Fischer</name>
    <email>robert.fischer@smokejumperit.com</email>
  </committer>
</commit>
