//To remove .orig files generated by repository $find . -iname '*.orig' -exec rm '{}' ';'
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
/***************************************** | |
/* DOM touch support module | |
/*****************************************/ | |
if (!window.CustomEvent) { | |
window.CustomEvent = function (event, params) { | |
params = params || { bubbles: false, cancelable: false, detail: undefined }; | |
var evt = document.createEvent('CustomEvent'); | |
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); | |
return evt; | |
}; |
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
function has3d(){ | |
if (!window.getComputedStyle) { | |
return false; | |
} | |
var el = document.createElement('p'), | |
has3d, | |
transforms = { | |
'webkitTransform':'-webkit-transform', | |
'OTransform':'-o-transform', |
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
Chart.pluginService.register({ | |
beforeRender: function (chart) { | |
if (chart.config.options.showAllTooltips) { | |
// create an array of tooltips | |
// we can't use the chart tooltip because there is only one tooltip per chart | |
chart.pluginTooltips = []; | |
chart.config.data.datasets.forEach(function (dataset, i) { | |
chart.getDatasetMeta(i).data.forEach(function (sector, j) { | |
chart.pluginTooltips.push(new Chart.Tooltip({ | |
_chart: chart.chart, |