Develop and Download Open Source Software

Browse Subversion Repository

Diff of /js/pseudo_behaviour.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by berupon, Sat Dec 5 02:36:36 2009 UTC revision 43 by berupon, Mon Mar 22 18:14:07 2010 UTC
# Line 6  Line 6 
6    
7    
8  // original : http://tockri.blog78.fc2.com/blog-entry-119.html  // original : http://tockri.blog78.fc2.com/blog-entry-119.html
9  function pressedChar(event)  function pressedChar(event) {
 {  
10          var code = 0;          var code = 0;
11          if (event.charCode === 0) {          if (event.charCode === 0) {
12                  // Firefox, Safari control code                  // Firefox, Safari control code
# Line 31  function pressedChar(event) Line 30  function pressedChar(event)
30          }          }
31  }  }
32    
33  function cancelEvent(event, cancel)  function cancelEvent(event, cancel) {
 {  
34          if (event.preventDefault) {          if (event.preventDefault) {
35                  if (cancel) {                  if (cancel) {
36                          event.preventDefault();                          event.preventDefault();
# Line 48  if (!behaviourAssignors) { Line 46  if (!behaviourAssignors) {
46          var behaviourAssignors = {};          var behaviourAssignors = {};
47  }  }
48    
49  function assignBehaviours()  function assignBehaviours() {
 {  
50          var cnt = document.forms.length;          var cnt = document.forms.length;
51          for (var i=0; i<cnt; ++i) {          for (var i=0; i<cnt; ++i) {
52                  var form = document.forms[i];                  var form = document.forms[i];

Legend:
Removed from v.6  
changed lines
  Added in v.43

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26