equal
deleted
inserted
replaced
1451 newNode.uri = snippet.find("[data-uri]").attr("data-uri") || newNode.uri; |
1451 newNode.uri = snippet.find("[data-uri]").attr("data-uri") || newNode.uri; |
1452 newNode.title = snippet.find("[data-title]").attr("data-title") || newNode.title; |
1452 newNode.title = snippet.find("[data-title]").attr("data-title") || newNode.title; |
1453 newNode.description = snippet.find("[data-description]").attr("data-description") || newNode.description; |
1453 newNode.description = snippet.find("[data-description]").attr("data-description") || newNode.description; |
1454 } |
1454 } |
1455 } |
1455 } |
|
1456 var fields = ["title", "description", "uri", "image"]; |
|
1457 for (var i = 0; i < fields.length; i++) { |
|
1458 var f = fields[i]; |
|
1459 if (res["text/x-iri-" + f]) { |
|
1460 newNode[f] = res["text/x-iri-" + f]; |
|
1461 } |
|
1462 } |
1456 if (newNode.title || newNode.description || newNode.uri) { |
1463 if (newNode.title || newNode.description || newNode.uri) { |
1457 var _off = _this.canvas_$.offset(), |
1464 var _off = _this.canvas_$.offset(), |
1458 _point = new paper.Point([ |
1465 _point = new paper.Point([ |
1459 _event.originalEvent.pageX - _off.left, |
1466 _event.originalEvent.pageX - _off.left, |
1460 _event.originalEvent.pageY - _off.top |
1467 _event.originalEvent.pageY - _off.top |