From 1c7954ed51cb5045b146510a315a5b0a2c8df786 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 20 Apr 2016 12:13:04 +0200 Subject: [PATCH] Grab Fabric off of the window --- www/canvas/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/canvas/main.js b/www/canvas/main.js index f81035c45..f25b64ecb 100644 --- a/www/canvas/main.js +++ b/www/canvas/main.js @@ -8,14 +8,14 @@ define([ '/common/messages.js', '/common/crypto.js', '/common/TextPatcher.js', - '/bower_components/fabric.js/dist/fabric.min.js', 'json.sortify', + '/bower_components/fabric.js/dist/fabric.min.js', '/bower_components/jquery/dist/jquery.min.js', '/customize/pad.js' -], function (Config, Realtime, Messages, Crypto, TextPatcher, Fabric, JSONSortify) { +], function (Config, Realtime, Messages, Crypto, TextPatcher, JSONSortify) { var module = window.APP = { }; var $ = module.$ = window.jQuery; - module.Fabric = window.fabric; + var Fabric = module.Fabric = window.fabric; $(window).on('hashchange', function() { window.location.reload();