We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecacc02 commit 08112b7Copy full SHA for 08112b7
src/prototype/dom/event.js
@@ -270,7 +270,7 @@
270
*
271
* document.observe('click', function(event) {
272
* var element = event.findElement('p');
273
- * if (element != document)
+ * if (element)
274
* $(element).hide();
275
* });
276
**/
@@ -1276,7 +1276,7 @@
1276
stopObserving: stopObserving.methodize(),
1277
1278
/**
1279
- * Element.on(@element, eventName[, selector], callback) -> Event.Handler
+ * document.on(@element, eventName[, selector], callback) -> Event.Handler
1280
1281
* See [[Event.on]].
1282
0 commit comments