Permalink
Browse files

Code refactoring, small changes in Event bindings

  • Loading branch information...
1 parent 8adb4c5 commit 81262fa96e786a6458731eb2bc6c8fa6c57c9e36 @hennson committed Nov 11, 2011
Showing with 5 additions and 8 deletions.
  1. +5 −8 jsc/jquery.application.js
@@ -1,6 +1,6 @@
/*
-* Version: 00.01
-* Date: 29.10.2011
+* Version: 00.02
+* Date: 10.11.2011
* By: usw-usf.de
*/
@@ -96,13 +96,10 @@ $(function () {
};
// bind the clear functionality to our button
- $("#preview").bind(_clickEventType, function () {
- clear();
- });
+ $("#preview").bind(_clickEventType, clear);
- // bind the network status check
- $(document.body).bind("online", checkNetworkStatus);
- $(document.body).bind("offline", checkNetworkStatus);
+ // bind the network status check and call it
+ $(document.body).bind("online offline", checkNetworkStatus);
checkNetworkStatus();
});

0 comments on commit 81262fa

Please sign in to comment.