client/js/renderer/nodebutton.js
changeset 396 b51c25ef4292
parent 293 fba23fde14ba
child 433 e457ec945e50
equal deleted inserted replaced
395:2e8c92eb0dfa 396:b51c25ef4292
     1 
     1 
     2 define(['jquery', 'underscore', 'requtils', 'renderer/basebutton'], function ($, _, requtils, BaseButton) {
     2 define(['jquery', 'underscore', 'requtils', 'renderer/basebutton'], function ($, _, requtils, BaseButton) {
     3     'use strict';
     3     'use strict';
     4     
     4 
     5     var Utils = requtils.getUtils();
     5     var Utils = requtils.getUtils();
     6 
     6 
     7     /* _NodeButton Begin */
     7     /* _NodeButton Begin */
     8 
     8 
     9     //var _NodeButton = Renderer._NodeButton = Utils.inherit(Renderer._BaseButton);
     9     //var _NodeButton = Renderer._NodeButton = Utils.inherit(Renderer._BaseButton);
    25                         this.imageName,
    25                         this.imageName,
    26                         this.renkan.translate(this.text)
    26                         this.renkan.translate(this.text)
    27                 );
    27                 );
    28                 this.lastSectorInner = sectorInner;
    28                 this.lastSectorInner = sectorInner;
    29             }
    29             }
    30         }
    30         },
       
    31         unselect: function() {
       
    32             BaseButton.prototype.unselect.apply(this, Array.prototype.slice.call(arguments, 1));
       
    33             if(this.source_representation && this.source_representation.buttons_timeout) {
       
    34                 clearTimeout(this.source_representation.buttons_timeout);
       
    35                 this.source_representation.hideButtons();
       
    36             }
       
    37         },
       
    38         select: function() {
       
    39             if(this.source_representation && this.source_representation.buttons_timeout) {
       
    40                 clearTimeout(this.source_representation.buttons_timeout);
       
    41             }
       
    42             this.sector.select();
       
    43         },
    31     });
    44     });
    32 
    45 
    33     /* _NodeButton End */
    46     /* _NodeButton End */
    34 
    47 
    35     return _NodeButton;
    48     return _NodeButton;