drop hyperscript dependency

pull/1/head
ansuz 9 years ago
parent f607fcc0ad
commit 69f3f4c9a8

@ -4,8 +4,7 @@ define([
'/common/messages.js', '/common/messages.js',
'/bower_components/chainpad-crypto/crypto.js', '/bower_components/chainpad-crypto/crypto.js',
'/bower_components/chainpad-netflux/chainpad-netflux.js', '/bower_components/chainpad-netflux/chainpad-netflux.js',
'/bower_components/hyperjson/hyperjson.amd.js', '/bower_components/hyperjson/hyperjson.js',
'/common/hyperscript.js',
'/common/toolbar.js', '/common/toolbar.js',
'/common/cursor.js', '/common/cursor.js',
'/bower_components/chainpad-json-validator/json-ot.js', '/bower_components/chainpad-json-validator/json-ot.js',
@ -16,7 +15,7 @@ define([
'/bower_components/diff-dom/diffDOM.js', '/bower_components/diff-dom/diffDOM.js',
'/bower_components/jquery/dist/jquery.min.js', '/bower_components/jquery/dist/jquery.min.js',
'/customize/pad.js' '/customize/pad.js'
], function (Config, Messages, Crypto, realtimeInput, Hyperjson, Hyperscript, ], function (Config, Messages, Crypto, realtimeInput, Hyperjson,
Toolbar, Cursor, JsonOT, TypingTest, JSONSortify, TextPatcher, Cryptpad) { Toolbar, Cursor, JsonOT, TypingTest, JSONSortify, TextPatcher, Cryptpad) {
var $ = window.jQuery; var $ = window.jQuery;
@ -32,12 +31,11 @@ define([
window.Hyperjson = Hyperjson; window.Hyperjson = Hyperjson;
var hjsonToDom = function (H) { var hjsonToDom = function (H) {
return Hyperjson.callOn(H, Hyperscript); return Hyperjson.toDOM(H); //callOn(H, Hyperscript);
}; };
var module = window.REALTIME_MODULE = { var module = window.REALTIME_MODULE = {
Hyperjson: Hyperjson, Hyperjson: Hyperjson,
Hyperscript: Hyperscript,
TextPatcher: TextPatcher, TextPatcher: TextPatcher,
logFights: true, logFights: true,
fights: [] fights: []

Loading…
Cancel
Save