Browse files

Fix Element.Event and Element.Event.Pseudos demos to be compatible wi…

…th 1.4
  • Loading branch information...
1 parent d72c8bf commit 9420d0599422f131dba45881190e0cd5d6e03ce8 @arian arian committed Oct 30, 2011
Showing with 2 additions and 3 deletions.
  1. +1 −1 demos/Element.Event.Pseudos/demo.js
  2. +0 −1 demos/Element.Event/demo.css
  3. +1 −1 demos/Element.Event/demo.js
View
2 demos/Element.Event.Pseudos/demo.js
@@ -12,7 +12,7 @@ window.addEvent('domready', function() {
});
// we can define our own pseudo events as well, for example to check for the alt key
- Event.definePseudo('alt', function(split, fn, args){
+ DOMEvent.definePseudo('alt', function(split, fn, args){
// args[0] is the Event instance
if(args[0].alt) fn.apply(this, args);
});
View
1 demos/Element.Event/demo.css
@@ -19,7 +19,6 @@ textarea {
border-left-color: #e4e4e4;
border-top-color: #e4e4e4;
margin-top: 10px;
- visibility: hidden;
font-size: 25px;
font-weight: bold;
text-align: center;
View
2 demos/Element.Event/demo.js
@@ -1,6 +1,6 @@
window.addEvent('domready', function() {
- var textarea = $('myTextarea'), log = $('log');
+ var textarea = $('myTextarea'), log = $('log').setStyle('opacity', 0);
// We define the highlight morph we're going to
// use when firing an event

0 comments on commit 9420d05

Please sign in to comment.