Permalink
Browse files

Update the demo.

  • Loading branch information...
1 parent e572013 commit cd41baecdee24bf223038fa53526c4e2b4f1cd95 @dervus dervus committed Feb 8, 2013
Showing with 2 additions and 8 deletions.
  1. +1 −4 demo/index.html
  2. +1 −4 demo/js/demo.js
View
@@ -242,10 +242,7 @@
# }
# });
#
-# var SEXY_SCHEMA = new jsyaml.Schema({
-# include: [ jsyaml.DEFAULT_SCHEMA ],
-# explicit: [ sexyType ]
-# });
+# var SEXY_SCHEMA = jsyaml.Schema.create([ sexyType ]);
#
# result = jsyaml.load(yourData, { schema: SEXY_SCHEMA });
View
@@ -23,10 +23,7 @@ window.runDemo = function runDemo() {
}
});
- var SEXY_SCHEMA = new jsyaml.Schema({
- include: [ jsyaml.DEFAULT_SCHEMA ],
- explicit: [ sexyType ]
- });
+ var SEXY_SCHEMA = jsyaml.Schema.create([ sexyType ]);
function parse() {
var str, obj;

0 comments on commit cd41bae

Please sign in to comment.