diff options
author | Armen Kesablyan | 2012-06-28 13:21:29 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-28 13:43:35 -0700 |
commit | 0aea7c15ebee0b0e9d51c2ca4b7eeec598227af1 (patch) | |
tree | f5d931c404c8066b971ed5a66f95f86776eacf8b /js/stage/binding-view.reel/binding-view.js | |
parent | 9add37d85a9d90541daae8ad5316388c4d9a9da4 (diff) | |
parent | f89895e5fb94a192d25f26249dadcb8ab225c72b (diff) | |
download | ninja-0aea7c15ebee0b0e9d51c2ca4b7eeec598227af1.tar.gz |
Merge branch 'Bindables_GIO' of https://github.com/ericguzman/ninja-internal into GIO_binding-view
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/stage/binding-view.reel/binding-view.js')
-rwxr-xr-x | js/stage/binding-view.reel/binding-view.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js index ee44758c..9e1b3e22 100755 --- a/js/stage/binding-view.reel/binding-view.js +++ b/js/stage/binding-view.reel/binding-view.js | |||
@@ -386,7 +386,7 @@ exports.BindingView = Montage.create(Component, { | |||
386 | // var mouseUpPoint = new WebKitPoint(e.pageX, e.pageY); | 386 | // var mouseUpPoint = new WebKitPoint(e.pageX, e.pageY); |
387 | // var nodeEl = new webkitConvertPointFromPageToNode(this.element, mouseUpPoint); | 387 | // var nodeEl = new webkitConvertPointFromPageToNode(this.element, mouseUpPoint); |
388 | //debugger; | 388 | //debugger; |
389 | this.connectionElementEnd = nodeEl.parentElement.controller.parentComponent.parentComponent.userComponent; | 389 | this.connectionElementEnd = nodeEl.parentElement.controller.parentComponent.parentComponent.userElement.controller; |
390 | this.connectionPropertyEnd = nodeEl.parentElement.controller.title; | 390 | this.connectionPropertyEnd = nodeEl.parentElement.controller.title; |
391 | this.application.ninja.objectsController.addBinding({ | 391 | this.application.ninja.objectsController.addBinding({ |
392 | sourceObject: this.connectionElementStart, | 392 | sourceObject: this.connectionElementStart, |
@@ -409,7 +409,7 @@ exports.BindingView = Montage.create(Component, { | |||
409 | value: function(e) { | 409 | value: function(e) { |
410 | // We are looking for a mouse down on an option to start the connection visual | 410 | // We are looking for a mouse down on an option to start the connection visual |
411 | if(e._event.target.classList.contains("connectorBubble")) { | 411 | if(e._event.target.classList.contains("connectorBubble")) { |
412 | this.connectionElementStart = e._event.target.parentElement.controller.parentComponent.parentComponent.userComponent; | 412 | this.connectionElementStart = e._event.target.parentElement.controller.parentComponent.parentComponent.userElement.controller; |
413 | this.connectionPropertyStart = e._event.target.parentElement.controller.title; | 413 | this.connectionPropertyStart = e._event.target.parentElement.controller.title; |
414 | this._isDrawingConnection = true; | 414 | this._isDrawingConnection = true; |
415 | this._connectionPositionStart = webkitConvertPointFromPageToNode(this.element, new WebKitPoint(e.pageX, e.pageY)); | 415 | this._connectionPositionStart = webkitConvertPointFromPageToNode(this.element, new WebKitPoint(e.pageX, e.pageY)); |