#318 providing support for multiple jQuery versions and exposing it via webgoat.customjs namespace

This commit is contained in:
Jason White
2017-01-27 15:31:23 -05:00
parent 693d791075
commit f3884fe605
5 changed files with 34 additions and 4 deletions

View File

@ -1,4 +1,5 @@
define(['jquery',
'libs/jquery-vuln',
'underscore',
'backbone',
'goatApp/controller/LessonController',
@ -8,6 +9,7 @@ define(['jquery',
'goatApp/view/DeveloperControlsView',
'goatApp/view/TitleView'
], function ($,
$vuln,
_,
Backbone,
LessonController,
@ -48,6 +50,7 @@ define(['jquery',
setUpCustomJS: function () {
webgoat.customjs.jquery = $; //passing jquery into custom js scope ... still klunky, but works for now
webgoat.customjs.jqueryVuln = $vuln;
// temporary shim to support dom-xss lesson
webgoat.customjs.phoneHome = function (e) {