fix #261 adjusted jquery event interfaces

This commit is contained in:
Diullei Gomes
2013-02-08 12:45:40 -02:00
parent b6872deb38
commit 49a55271f5
2 changed files with 20 additions and 4 deletions
+9 -2
View File
@@ -1865,8 +1865,10 @@ function test_jQuery() {
$foo.triggerHandler('eventName');
$("div > p").css("border", "1px solid gray");
$("input:radio", document.forms[0]);
var xml: any;
$("div", xml.responseXML);
$(document.body).css("background", "black");
var myForm: any;
$(myForm.elements).hide();
$('<p id="test">My <em>new</em> text</p>').appendTo('body');
$('<img />');
@@ -1893,7 +1895,7 @@ function test_jQuery() {
}
function test_jquery() {
var a = { what: "A regular JS object" },
var a = <any>{ what: "A regular JS object" },
b = $('body');
if (a.jquery) {
alert(' a is a jQuery object! ');
@@ -2225,4 +2227,9 @@ function test_text() {
return 'item number ' + (index + 1);
});
$("p").text("<b>Some</b> new text.");
}
}
$('#item').click(function(e) {
if (e.ctrlKey) { console.log('control pressed'); }
if (e.altKey) { console.log('alt pressed'); }
});