This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didInsertElement() { | |
this._super(...arguments); | |
this.callFunctionOnReferencedObject(); | |
}, | |
callFunctionOnReferencedObject() { | |
console.log('api', this.get('api')); | |
let executionContext = this.get('api.outerComponentReference'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Color name: | |
Length of string (byte) | |
+ Name of color (string) | |
+ '86' | |
White: | |
94 84 - 01 2B - color_name | |
Red: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fix_mobile_scrolling = function() { | |
var current_body_scroll_top = $('body').scrollTop(); | |
window.setTimeout(function (s) { | |
$('body').scrollTop(s + 1); | |
window.setTimeout(function (s) { | |
$('body').scrollTop(s); | |
}, 10, s) | |
}, 10, current_body_scroll_top); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#selectors_to_reset { | |
alignment-adjust: auto; | |
alignment-baseline: baseline; | |
-webkit-animation: none 0 ease 0 1 normal; | |
-moz-animation: none 0 ease 0 1 normal; | |
-ms-animation: none 0 ease 0 1 normal; | |
animation: none 0 ease 0 1 normal; | |
-webkit-animation-play-state: running; | |
-moz-play-state: running; | |
-ms-animation-play-state: running; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Detect CSS mask support and hack it into Modernizr | |
if ( document.body.style[ '-webkit-mask-repeat' ] !== undefined ) { | |
Modernizr.cssmasks = true; | |
$('html').addClass('cssmasks'); | |
} else { | |
Modernizr.cssmasks = false; | |
$('html').addClass('no-cssmasks'); | |
} |