diff options
Diffstat (limited to 'js/stage/binding-view.reel/binding-view.js')
-rwxr-xr-x | js/stage/binding-view.reel/binding-view.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js index 9f4e7809..c2407b13 100755 --- a/js/stage/binding-view.reel/binding-view.js +++ b/js/stage/binding-view.reel/binding-view.js | |||
@@ -212,10 +212,8 @@ exports.BindingView = Montage.create(Component, { | |||
212 | value: function() { | 212 | value: function() { |
213 | 213 | ||
214 | if(this.hide) { | 214 | if(this.hide) { |
215 | console.log('hiding vinding view'); | ||
216 | this.element.style.setProperty('display', 'none'); | 215 | this.element.style.setProperty('display', 'none'); |
217 | } else { | 216 | } else { |
218 | console.log("showing binding view"); | ||
219 | this.element.style.removeProperty('display'); | 217 | this.element.style.removeProperty('display'); |
220 | this.element.style.width = this.width + "px"; | 218 | this.element.style.width = this.width + "px"; |
221 | this.element.style.height = this.height + "px"; | 219 | this.element.style.height = this.height + "px"; |
@@ -338,7 +336,6 @@ exports.BindingView = Montage.create(Component, { | |||
338 | }.bind(this)); | 336 | }.bind(this)); |
339 | if(typeof (this.objectsTray.element) !== "undefined") { | 337 | if(typeof (this.objectsTray.element) !== "undefined") { |
340 | if (this.objectsTray.element.offsetLeft < mousePoint.x && (this.objectsTray.element.offsetLeft + this.objectsTray.element.offsetWidth) > mousePoint.x ) { | 338 | if (this.objectsTray.element.offsetLeft < mousePoint.x && (this.objectsTray.element.offsetLeft + this.objectsTray.element.offsetWidth) > mousePoint.x ) { |
341 | //console.log(this.objectsTray.element.offsetTop, (this.objectsTray.element.parentElement.offsetTop + this.objectsTray.element.offsetHeight)); | ||
342 | if(this.objectsTray.element.parentElement.offsetTop < mousePoint.y && (this.objectsTray.element.parentElement.offsetTop + this.objectsTray.element.offsetHeight) > mousePoint.y) { | 339 | if(this.objectsTray.element.parentElement.offsetTop < mousePoint.y && (this.objectsTray.element.parentElement.offsetTop + this.objectsTray.element.offsetHeight) > mousePoint.y) { |
343 | overHud = true; | 340 | overHud = true; |
344 | } | 341 | } |
@@ -395,7 +392,6 @@ exports.BindingView = Montage.create(Component, { | |||
395 | //debugger; | 392 | //debugger; |
396 | this.connectionElementEnd = nodeEl.parentElement.controller.parentComponent.parentComponent.userComponent; | 393 | this.connectionElementEnd = nodeEl.parentElement.controller.parentComponent.parentComponent.userComponent; |
397 | this.connectionPropertyEnd = nodeEl.parentElement.controller.title; | 394 | this.connectionPropertyEnd = nodeEl.parentElement.controller.title; |
398 | //console.log(this.connectionElementStart, this.connectionPropertyStart, this.connectionElementEnd, this.connectionPropertyEnd); | ||
399 | this.application.ninja.objectsController.addBinding({ | 395 | this.application.ninja.objectsController.addBinding({ |
400 | sourceObject: this.connectionElementStart, | 396 | sourceObject: this.connectionElementStart, |
401 | sourceObjectPropertyPath: this.connectionPropertyStart, | 397 | sourceObjectPropertyPath: this.connectionPropertyStart, |
@@ -417,7 +413,6 @@ exports.BindingView = Montage.create(Component, { | |||
417 | value: function(e) { | 413 | value: function(e) { |
418 | // We are looking for a mouse down on an option to start the connection visual | 414 | // We are looking for a mouse down on an option to start the connection visual |
419 | if(e._event.target.classList.contains("connectorBubble")) { | 415 | if(e._event.target.classList.contains("connectorBubble")) { |
420 | //console.log(e._event.target.parentElement.controller.parentComponent.parentComponent.userComponent); | ||
421 | this.connectionElementStart = e._event.target.parentElement.controller.parentComponent.parentComponent.userComponent; | 416 | this.connectionElementStart = e._event.target.parentElement.controller.parentComponent.parentComponent.userComponent; |
422 | this.connectionPropertyStart = e._event.target.parentElement.controller.title; | 417 | this.connectionPropertyStart = e._event.target.parentElement.controller.title; |
423 | this._isDrawingConnection = true; | 418 | this._isDrawingConnection = true; |