1 line
757 B
JSON
1 line
757 B
JSON
{"name":"event.namespace","type":"property","title":"event.namespace","deprecated":null,"removed":null,"desc":"The namespace specified when the event was triggered.","categories":["events/event-object","version/1.4.3"],"entries":[{"return":"String","signatures":{"added":"1.4.3"},"examples":{"desc":"Determine the event namespace used.","code":"\n$( \"p\" ).on( \"test.something\", function( event ) {\n alert( event.namespace );\n});\n$( \"button\" ).click(function( event ) {\n $( \"p\" ).trigger( \"test.something\" );\n});\n","html":"\n<button>display event.namespace</button>\n<p></p>\n"},"longdesc":"\n <p>This will likely be used primarily by plugin authors who wish to handle tasks differently depending on the event namespace used.</p>\n "}]} |