Skip to content

Commit

Permalink
fixed tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
makepanic committed Apr 4, 2014
1 parent 6278760 commit b0a3a62
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module.exports = function(grunt) {

// mixins
'js/mixins/PeriodsMixin.js',
'js/mixins/ContentReadyTriggerableMixin.js',

// controllers
'js/controllers/ApplicationController.js',
Expand Down
2 changes: 2 additions & 0 deletions src/js/controllers/BridgeDetailController.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*global $, GLOBE, Em */
GLOBE.BridgeDetailController = Em.ObjectController.extend(
Em.Evented,
GLOBE.ContentReadyTriggerableMixin,
GLOBE.PeriodsMixin, {
bandwidthData: {},
weightData: {},
Expand Down
2 changes: 2 additions & 0 deletions src/js/controllers/RelayDetailController.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*global $, GLOBE, Em */
GLOBE.RelayDetailController = Em.ObjectController.extend(
Em.Evented,
GLOBE.ContentReadyTriggerableMixin,
GLOBE.PeriodsMixin, {
bandwidthData: {},
weightData: {},
Expand Down
11 changes: 11 additions & 0 deletions src/js/mixins/ContentReadyTriggerableMixin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*global $, GLOBE, Em */
GLOBE.ContentReadyTriggerableMixin = Em.Mixin.create({
/**
* Function that is called if the controller content is changed.
*/
contentChanged: function(){
Em.run.scheduleOnce('afterRender', this, function(){
this.trigger('content-ready');
});
}.observes('content')
});

0 comments on commit b0a3a62

Please sign in to comment.