Permalink
Browse files

Fixed lint throwing errors with extra comma in Click.js and simplifie…

…d markup in the examples.
  • Loading branch information...
1 parent c224fe7 commit 50030dc6cb89c4c13ba86c7805d5b5eb5589f3ed @jbueza jbueza committed Nov 12, 2010
Showing with 15 additions and 18 deletions.
  1. +0 −1 examples/basic.html
  2. +0 −2 examples/carousel.html
  3. +15 −15 examples/js/ExampleApp/Click.js
View
@@ -5,7 +5,6 @@
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Blast Mojo Lite Basic Example</title>
<link rel="stylesheet" type="text/css" href="css/examples.css" />
-
</head>
<body>
View
@@ -1,8 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta http-equiv="Content-Style-Type" content="text/css">
<title>Blast Mojo Lite Carousel Example</title>
<link rel="stylesheet" type="text/css" href="css/examples.css" />
<link rel="stylesheet" type="text/css" href="http://sorgalla.com/projects/jcarousel/skins/tango/skin.css" />
@@ -1,18 +1,18 @@
Joose.Class('ExampleApp.Click', {
- isa: 'Mojolite.Binder',
- has: {
- // This is required if you are to bind events the 'mojolite way'
- __eventMap: {init: [['context', "", 'click', 'testClick']]},
- },
- methods: {
- testClick: function(e) {
- console.log("testClick invoked")
- return false;
- }
- },
- after: {
- initialize: function(props) {
- // You can put 3rd party based binding of events here if you do not want to use __eventmap.
- }
+ isa: 'Mojolite.Binder',
+ has: {
+ // This is required if you are to bind events the 'mojolite way'
+ __eventMap: {init: [['context', "", 'click', 'testClick']]}
+ },
+ methods: {
+ testClick: function(e) {
+ alert("Hello there!");
+ return false;
}
+ },
+ after: {
+ initialize: function(props) {
+ // You can put 3rd party based binding of events here if you do not want to use __eventmap.
+ }
+ }
});

0 comments on commit 50030dc

Please sign in to comment.