Skip to content
Browse files

Adding some history events to Element.Event

  • Loading branch information...
1 parent 160cdb3 commit 6e16f69db990cd324a0103b1606304bfe7dc0008 @cpojer cpojer committed Mar 26, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 Source/Element/Element.Event.js
View
5 Source/Element/Element.Event.js
@@ -138,6 +138,7 @@ Element.NativeEvents = {
gesturestart: 2, gesturechange: 2, gestureend: 2, // gesture
focus: 2, blur: 2, change: 2, reset: 2, select: 2, submit: 2, paste: 2, input: 2, //form elements
load: 2, unload: 1, beforeunload: 2, resize: 1, move: 1, DOMContentLoaded: 1, readystatechange: 1, //window
+ hashchange: 1, popstate: 2, // history
error: 1, abort: 1, scroll: 1 //misc
};
@@ -172,12 +173,12 @@ if (!window.addEventListener){
Element.Events.change = {
base: function(){
var type = this.type;
- return (this.get('tag') == 'input' && (type == 'radio' || type == 'checkbox')) ? 'propertychange' : 'change'
+ return (this.get('tag') == 'input' && (type == 'radio' || type == 'checkbox')) ? 'propertychange' : 'change';
},
condition: function(event){
return this.type != 'radio' || (event.event.propertyName == 'checked' && this.checked);
}
- }
+ };
}
/*</ltIE9>*/

0 comments on commit 6e16f69

Please sign in to comment.
Something went wrong with that request. Please try again.