html text<br/>
-<script type="text/javascript">foo = "foo";</script>
+<script type="text/javascript">/* <![CDATA[ */
+foo = "foo"; $('#foo').html('foo');
+/* ]]> */</script>
<script src="data/test.js"></script>
blabla
\ No newline at end of file
* window.foo = undefined;
* var verifyEvaluation = function() {
* ok( foobar == "bar", 'Check if script src was evaluated after load' );
+ * ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM');
+ * ok( $('#ap').html() == 'bar', 'Check if script evaluation has modified DOM');
* start();
* };
* $('#first').load('data/test.html', function() {
* @name load
* @type jQuery
* @param String url The URL of the HTML file to load.
- * @param Hash params A set of key/value pairs that will be sent to the server.
+ * @param Object params A set of key/value pairs that will be sent to the server.
* @param Function callback A function to be executed whenever the data is loaded.
* @cat AJAX
*/
},
trigger: function(type,data,element) {
- // Touch up the incoming data
- data = data || [];
+ // Clone the incoming data, if any
+ data = $.merge([], data || []);
// Handle a global trigger
if ( !element ) {