highcharts-rails 2.2.3 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v2.2.3 (2012-05-07)
2
+ * @license Highcharts JS v2.2.4 (2012-05-31)
3
3
  * MooTools adapter
4
4
  *
5
5
  * (c) 2010-2011 Torstein Hønsi
@@ -69,6 +69,19 @@ win.HighchartsAdapter = {
69
69
  /*jslint unparam: false*/
70
70
  },
71
71
 
72
+ /**
73
+ * Run a general method on the framework, following jQuery syntax
74
+ * @param {Object} el The HTML element
75
+ * @param {String} method Which method to run on the wrapped element
76
+ */
77
+ adapterRun: function (el, method) {
78
+
79
+ // This currently works for getting inner width and height. If adding
80
+ // more methods later, we need a conditional implementation for each.
81
+ return $(el).getStyle(method).toInt();
82
+
83
+ },
84
+
72
85
  /**
73
86
  * Downloads a script and executes a callback when done.
74
87
  * @param {String} scriptLocation
@@ -244,6 +257,7 @@ win.HighchartsAdapter = {
244
257
  // el.removeEvents below apperantly calls this method again. Do not quite understand why, so for now just bail out.
245
258
  return;
246
259
  }
260
+
247
261
  win.HighchartsAdapter.extendWithEvents(el);
248
262
  if (type) {
249
263
  if (type === 'unload') { // Moo self destructs before custom unload events
@@ -252,7 +266,7 @@ win.HighchartsAdapter = {
252
266
 
253
267
  if (fn) {
254
268
  el.removeEvent(type, fn);
255
- } else {
269
+ } else if (el.removeEvents) { // #958
256
270
  el.removeEvents(type);
257
271
  }
258
272
  } else {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v2.2.3 (2012-05-07)
2
+ * @license Highcharts JS v2.2.4 (2012-05-31)
3
3
  * Prototype adapter
4
4
  *
5
5
  * @author Michael Nelson, Torstein Hønsi.
@@ -101,6 +101,19 @@ return {
101
101
  }
102
102
  },
103
103
 
104
+ /**
105
+ * Run a general method on the framework, following jQuery syntax
106
+ * @param {Object} el The HTML element
107
+ * @param {String} method Which method to run on the wrapped element
108
+ */
109
+ adapterRun: function (el, method) {
110
+
111
+ // This currently works for getting inner width and height. If adding
112
+ // more methods later, we need a conditional implementation for each.
113
+ return parseInt($(el).getStyle(method), 10);
114
+
115
+ },
116
+
104
117
  /**
105
118
  * Downloads a script and executes a callback when done.
106
119
  * @param {String} scriptLocation
@@ -2908,7 +2908,7 @@ if (CanvasRenderingContext2D) {
2908
2908
  });
2909
2909
  }
2910
2910
  }/**
2911
- * @license Highcharts JS v2.2.3 (2012-05-07)
2911
+ * @license Highcharts JS v2.2.4 (2012-05-31)
2912
2912
  * CanVGRenderer Extension module
2913
2913
  *
2914
2914
  * (c) 2011-2012 Torstein Hønsi, Erik Olsson
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v2.2.3 (2012-05-07)
2
+ * @license Highcharts JS v2.2.4 (2012-05-31)
3
3
  * Exporting module
4
4
  *
5
5
  * (c) 2010-2011 Torstein Hønsi
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highcharts-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-07 00:00:00.000000000 +02:00
12
+ date: 2012-05-31 00:00:00.000000000 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
17
- requirement: &70141128675820 !ruby/object:Gem::Requirement
17
+ requirement: &70240572893040 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '3.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70141128675820
25
+ version_requirements: *70240572893040
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &70141128675320 !ruby/object:Gem::Requirement
28
+ requirement: &70240572892540 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '1.0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70141128675320
36
+ version_requirements: *70240572892540
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rails
39
- requirement: &70141128674860 !ruby/object:Gem::Requirement
39
+ requirement: &70240572892080 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '3.1'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70141128674860
47
+ version_requirements: *70240572892080
48
48
  description: Gem that includes Highcharts (Interactive JavaScript charts for your
49
49
  web projects), in the Rails Asset Pipeline introduced in Rails 3.1
50
50
  email: