for (var i = 0; i < ca.length; i++) {\r
var c = ca[i];\r
while (c.charAt(0) == ' ') c = c.substring(1, c.length);\r
- if (c.indexOf(nameEQ) == 0) return unescape(c.substring(nameEQ.length, c.length));\r
+ if (c.indexOf(nameEQ) === 0) return unescape(c.substring(nameEQ.length, c.length));\r
}\r
return null;\r
}\r
Canvas.prototype.listCreate = function(options) {\r
var element1 = $(this.content.find('#' + options.start.getId()).get(0));\r
var element2 = $(this.content.find('#' + options.end.getId()).get(0));\r
- if(!element1.parent().get(0) === element2.parent().get(0))\r
+ if(element1.parent().get(0) !== element2.parent().get(0))\r
return false;\r
\r
var parent = element1.parent();\r
var nodes = this.nodes = {};\r
this.currentNode = node;\r
var parentNode = node.parent();\r
- var parent = undefined;\r
+ var parent;\r
\r
if(parentNode) {\r
parent = {\r
dirty.sourceEditor = false;\r
}\r
if(slug === 'editor') {\r
- var doc = dirty.documentCanvas ? sandbox.getModule('documentCanvas').getDocument() : sandbox.getModule('data').getDocument();\r
+ doc = dirty.documentCanvas ? sandbox.getModule('documentCanvas').getDocument() : sandbox.getModule('data').getDocument();\r
if(dirty.metadataEditor) {\r
doc = sandbox.getModule('metadataEditor').attachMetadata(doc);\r
}\r