--- a/client/js/renderer/nodebutton.js Wed Mar 04 09:39:11 2015 +0100
+++ b/client/js/renderer/nodebutton.js Fri Mar 13 10:56:19 2015 +0100
@@ -1,7 +1,7 @@
define(['jquery', 'underscore', 'requtils', 'renderer/basebutton'], function ($, _, requtils, BaseButton) {
'use strict';
-
+
var Utils = requtils.getUtils();
/* _NodeButton Begin */
@@ -27,7 +27,20 @@
);
this.lastSectorInner = sectorInner;
}
- }
+ },
+ unselect: function() {
+ BaseButton.prototype.unselect.apply(this, Array.prototype.slice.call(arguments, 1));
+ if(this.source_representation && this.source_representation.buttons_timeout) {
+ clearTimeout(this.source_representation.buttons_timeout);
+ this.source_representation.hideButtons();
+ }
+ },
+ select: function() {
+ if(this.source_representation && this.source_representation.buttons_timeout) {
+ clearTimeout(this.source_representation.buttons_timeout);
+ }
+ this.sector.select();
+ },
});
/* _NodeButton End */