use textpatcher from bower for all pads

pull/1/head
ansuz 9 years ago
parent 0cd4f85ff0
commit ad3c53c344

@ -31,6 +31,7 @@
"rangy": "rangy-release#~1.3.0", "rangy": "rangy-release#~1.3.0",
"json.sortify": "~2.1.0", "json.sortify": "~2.1.0",
"fabric.js": "fabric#~1.6.0", "fabric.js": "fabric#~1.6.0",
"hyperjson": "~1.2.2" "hyperjson": "~1.2.2",
"textpatcher": "^1.1.1"
} }
} }

@ -3,7 +3,7 @@ define([
'/bower_components/jquery/dist/jquery.min.js', '/bower_components/jquery/dist/jquery.min.js',
'/common/hyperjson.js', // serializing classes as an attribute '/common/hyperjson.js', // serializing classes as an attribute
'/common/hyperscript.js', // using setAttribute '/common/hyperscript.js', // using setAttribute
'/common/TextPatcher.js', '/bower_components/textpatcher/TextPatcher.amd.js',
'json.sortify', 'json.sortify',
], function (jQuery, Hyperjson, Hyperscript, TextPatcher, Sortify) { ], function (jQuery, Hyperjson, Hyperscript, TextPatcher, Sortify) {
var $ = window.jQuery; var $ = window.jQuery;

@ -7,7 +7,7 @@ define([
'/common/realtime-input.js', '/common/realtime-input.js',
'/common/messages.js', '/common/messages.js',
'/common/crypto.js', '/common/crypto.js',
'/common/TextPatcher.js', '/bower_components/textpatcher/TextPatcher.amd.js',
'json.sortify', 'json.sortify',
'/common/json-ot.js', '/common/json-ot.js',
'/bower_components/fabric.js/dist/fabric.min.js', '/bower_components/fabric.js/dist/fabric.min.js',

@ -5,7 +5,7 @@ define([
'/common/messages.js', '/common/messages.js',
'/common/crypto.js', '/common/crypto.js',
'/common/realtime-input.js', '/common/realtime-input.js',
'/common/TextPatcher.js', '/bower_components/textpatcher/TextPatcher.amd.js',
'/common/toolbar.js', '/common/toolbar.js',
'json.sortify', 'json.sortify',
'/common/json-ot.js', '/common/json-ot.js',

@ -3,7 +3,7 @@ define([
'/api/config?cb=' + Math.random().toString(16).substring(2), '/api/config?cb=' + Math.random().toString(16).substring(2),
'/common/realtime-input.js', '/common/realtime-input.js',
'/common/crypto.js', '/common/crypto.js',
'/common/TextPatcher.js', '/bower_components/textpatcher/TextPatcher.amd.js',
'json.sortify', 'json.sortify',
'/form/ula.js', '/form/ula.js',
'/common/json-ot.js', '/common/json-ot.js',

@ -2,7 +2,7 @@ define([
'/api/config?cb=' + Math.random().toString(16).substring(2), '/api/config?cb=' + Math.random().toString(16).substring(2),
'/common/realtime-input.js', '/common/realtime-input.js',
'/common/crypto.js', '/common/crypto.js',
'/common/TextPatcher.js', '/bower_components/textpatcher/TextPatcher.amd.js',
'/bower_components/jquery/dist/jquery.min.js' '/bower_components/jquery/dist/jquery.min.js'
], function (Config, Realtime, Crypto, TextPatcher) { ], function (Config, Realtime, Crypto, TextPatcher) {
var $ = window.jQuery; var $ = window.jQuery;

@ -11,7 +11,7 @@ define([
'/common/json-ot.js', '/common/json-ot.js',
'/common/TypingTests.js', '/common/TypingTests.js',
'json.sortify', 'json.sortify',
'/common/TextPatcher.js', '/bower_components/textpatcher/TextPatcher.amd.js',
'/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'

@ -2,7 +2,7 @@ define([
'/api/config?cb=' + Math.random().toString(16).substring(2), '/api/config?cb=' + Math.random().toString(16).substring(2),
'/common/realtime-input.js', '/common/realtime-input.js',
'/common/crypto.js', '/common/crypto.js',
'/common/TextPatcher.js', '/bower_components/textpatcher/TextPatcher.amd.js',
'/bower_components/jquery/dist/jquery.min.js', '/bower_components/jquery/dist/jquery.min.js',
'/customize/pad.js' '/customize/pad.js'
], function (Config, Realtime, Crypto, TextPatcher) { ], function (Config, Realtime, Crypto, TextPatcher) {

@ -2,7 +2,7 @@ define([
'/api/config?cb=' + Math.random().toString(16).substring(2), '/api/config?cb=' + Math.random().toString(16).substring(2),
'/common/realtime-input.js', '/common/realtime-input.js',
'/common/crypto.js', '/common/crypto.js',
'/common/TextPatcher.js', '/bower_components/textpatcher/TextPatcher.amd.js',
'/bower_components/jquery/dist/jquery.min.js', '/bower_components/jquery/dist/jquery.min.js',
'/customize/pad.js' '/customize/pad.js'
], function (Config, Realtime, Crypto, TextPatcher) { ], function (Config, Realtime, Crypto, TextPatcher) {

Loading…
Cancel
Save