Updated JS to use latest JSON def.

This commit is contained in:
Valera Rozuvan
2012-12-25 13:02:08 +02:00
committed by Alexander Kryklia
parent b1a73a5293
commit f0850f4c4b
2 changed files with 5 additions and 5 deletions

View File

@@ -36,8 +36,8 @@ define(['logme'], function (logme) {
returnStatus = false;
}
if (typeof config.target === 'string') {
state.config.target = config.target;
if (typeof config.target_container === 'string') {
state.config.target_container = config.target_container;
} else {
logme('ERROR: Property config.target is not of type "string".');
returnStatus = false;
@@ -54,8 +54,8 @@ define(['logme'], function (logme) {
logme('ERROR: Attribute "obj.label" is not a string.');
return false;
} else if (typeof obj.name !== 'string') {
logme('ERROR: Attribute "obj.name" is not a string.');
} else if (typeof obj.id !== 'string') {
logme('ERROR: Attribute "obj.id" is not a string.');
return false;
}

View File

@@ -10,7 +10,7 @@ define(['logme'], function (logme) {
function Target(state) {
var targetImgSrc, targetElContainer, mouseMoveDiv;
targetImgSrc = state.config.imageDir + '/' + state.config.target;
targetImgSrc = state.config.imageDir + '/' + state.config.target_container;
targetElContainer = $(
'<div ' +