fix undefined reference
This commit is contained in:
@@ -1,16 +1,14 @@
|
|||||||
define([
|
define([
|
||||||
'/common/virtual-dom.js',
|
|
||||||
'/common/hyperjson.js',
|
'/common/hyperjson.js',
|
||||||
'/common/hyperscript.js'
|
'/common/hyperscript.js'
|
||||||
], function (vdom, hyperjson, hyperscript) {
|
], function (hyperjson, hyperscript) {
|
||||||
// complain if you don't find the required APIs
|
// complain if you don't find the required APIs
|
||||||
if (!(vdom && hyperjson && hyperscript)) { throw new Error(); }
|
if (!(hyperjson && hyperscript)) { throw new Error(); }
|
||||||
|
|
||||||
// Generate a matrix of conversions
|
// Generate a matrix of conversions
|
||||||
/*
|
/*
|
||||||
convert.dom.to.hjson, convert.hjson.to.dom,
|
convert.dom.to.hjson, convert.hjson.to.dom,
|
||||||
convert.dom.to.vdom, convert.vdom.to.dom,
|
convert.dom.to.vdom, convert.vdom.to.dom,
|
||||||
convert.vdom.to.hjson, convert.hjson.to.vdom
|
|
||||||
|
|
||||||
and of course, identify functions in case you try to
|
and of course, identify functions in case you try to
|
||||||
convert a datatype to itself
|
convert a datatype to itself
|
||||||
@@ -36,15 +34,6 @@ define([
|
|||||||
vdom: function (H) {
|
vdom: function (H) {
|
||||||
return hyperjson.callOn(H, vdom.h);
|
return hyperjson.callOn(H, vdom.h);
|
||||||
}
|
}
|
||||||
},
|
|
||||||
vdom:{
|
|
||||||
vdom: Self,
|
|
||||||
dom: function (V) {
|
|
||||||
return vdom.create(V);
|
|
||||||
},
|
|
||||||
hjson: function (V) {
|
|
||||||
return hyperjson.fromDOM(vdom.create(V));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
convert = {};
|
convert = {};
|
||||||
@@ -55,7 +44,6 @@ define([
|
|||||||
}());
|
}());
|
||||||
|
|
||||||
convert.core = {
|
convert.core = {
|
||||||
vdom: vdom,
|
|
||||||
hyperjson: hyperjson,
|
hyperjson: hyperjson,
|
||||||
hyperscript: hyperscript
|
hyperscript: hyperscript
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user