Minor JS fixes to make conversion to PHP better

Change-Id: Ia36dab7c9a0a59df80c582b18cbc5a0a9bf8a36a
This commit is contained in:
C. Scott Ananian 2019-01-30 18:38:30 -08:00
parent 1855c046ac
commit 11147b88f4

View file

@ -6,16 +6,18 @@
'use strict';
var domino = require('domino');
const domino = require('domino');
var ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.10.0');
var ContentUtils = ParsoidExtApi.ContentUtils;
var DOMDataUtils = ParsoidExtApi.DOMDataUtils;
var DOMUtils = ParsoidExtApi.DOMUtils;
var TokenUtils = ParsoidExtApi.TokenUtils;
var WTUtils = ParsoidExtApi.WTUtils;
var Promise = ParsoidExtApi.Promise;
var Sanitizer = ParsoidExtApi.Sanitizer;
const ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.10.0');
const {
ContentUtils,
DOMDataUtils,
DOMUtils,
TokenUtils,
WTUtils,
Promise,
Sanitizer,
} = ParsoidExtApi;
/**
* Simple token transform version of the Ref extension tag.