Permalink
Browse files

using spade

  • Loading branch information...
1 parent de61765 commit 9f806b76a32690cd14a011017bdee98f2f8c03cc @qoobaa committed Aug 12, 2011
Showing with 8 additions and 3 deletions.
  1. +2 −1 ficha.json
  2. +1 −1 index.html
  3. +5 −1 lib/main.js
View
3 ficha.json
@@ -15,6 +15,7 @@
}
},
"dependencies": {
- "sproutcore": ">= 0-pre"
+ "sproutcore": ">= 0-pre",
+ "spade": ">= 0"
}
}
View
2 index.html
@@ -14,5 +14,5 @@
</script>
</body>
<script type="text/javascript" src="assets/bpm_libs.js"></script>
- <script type="text/javascript" src="lib/main.js"></script>
+ <script>spade.require("ficha")</script>
</html>
View
6 lib/main.js
@@ -1,4 +1,6 @@
-var Ficha = SC.Application.create();
+spade.require("sproutcore");
+
+Ficha = SC.Application.create();
Ficha.Card = SC.Object.extend({
front: null,
@@ -33,3 +35,5 @@ Ficha.SideView = SC.TextField.extend({
}
}
});
+
+

0 comments on commit 9f806b7

Please sign in to comment.