I'm having a few issues with creating an object within an object, it's syntax related but can't seem to remember how I can achieve this.
ajaxRequest = {
that: null,
request: null,
multiRun: null,
multiRunTimer: null,
defaults={
ext: '',
url: '',
type: "POST",
dataType: "json",
payload: null,
beforeSend: 'handleBefore',
error: 'handleError',
complete: 'handleCompletion',
pass: false,
debug: false,
multiRunBlock: false
}}
I get a syntax error of Uncaught SyntaxError: Unexpected token =
:) instead of an=.