Make as a legacy style module
This commit is contained in:
parent
5d152e3599
commit
c60ad4f969
1 changed files with 1 additions and 3 deletions
|
@ -33,9 +33,7 @@ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISI
|
||||||
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default function Diff() {}
|
window.Diff = {
|
||||||
|
|
||||||
Diff.prototype = {
|
|
||||||
diff(oldString, newString, options = {}) {
|
diff(oldString, newString, options = {}) {
|
||||||
let callback = options.callback;
|
let callback = options.callback;
|
||||||
if (typeof options === 'function') {
|
if (typeof options === 'function') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue