vendor/assets/javascripts/highcharts/adapters/mootools.js in highcharts-rails-2.3.0 vs vendor/assets/javascripts/highcharts/adapters/mootools.js in highcharts-rails-2.3.2
- old
+ new
@@ -1,7 +1,7 @@
/**
- * @license Highcharts JS v2.3.0 (2012-08-24)
+ * @license Highcharts JS v2.3.2 (2012-08-31)
* MooTools adapter
*
* (c) 2010-2011 Torstein Hønsi
*
* License: www.highcharts.com/license
@@ -66,18 +66,18 @@
return morphCompute.apply(fx, arguments);
}
};
/*jslint unparam: false*/
},
-
+
/**
* Run a general method on the framework, following jQuery syntax
* @param {Object} el The HTML element
* @param {String} method Which method to run on the wrapped element
*/
adapterRun: function (el, method) {
-
+
// This currently works for getting inner width and height. If adding
// more methods later, we need a conditional implementation for each.
if (method === 'width' || method === 'height') {
return parseInt($(el).getStyle(method), 10);
}
@@ -180,11 +180,11 @@
* @param {Function} fn
*/
grep: function (arr, fn) {
return arr.filter(fn);
},
-
+
/**
* Return the index of an item in an array, or -1 if not matched
*/
inArray: function (item, arr, from) {
return arr.indexOf(item, from);
@@ -263,11 +263,11 @@
removeEvent: function (el, type, fn) {
if (typeof el === 'string') {
// el.removeEvents below apperantly calls this method again. Do not quite understand why, so for now just bail out.
return;
}
-
+
win.HighchartsAdapter.extendWithEvents(el);
if (type) {
if (type === 'unload') { // Moo self destructs before custom unload events
type = 'beforeunload';
}
@@ -304,10 +304,10 @@
// fire the default if it is passed and it is not prevented above
if (defaultFunction) {
defaultFunction(event);
}
},
-
+
/**
* Set back e.pageX and e.pageY that MooTools has abstracted away
*/
washMouseEvent: function (e) {
return e.event || e;