Skip to content
This repository was archived by the owner on Jul 25, 2019. It is now read-only.

Commit 0e5d1c1

Browse files
committed
Handsontable 0.9.19
1 parent 3847a00 commit 0e5d1c1

10 files changed

+72
-21
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [0.9.19](https://github.com/warpech/jquery-handsontable/tree/v0.9.19) (Oct 01, 2013)
2+
3+
Two features that come in handy for plugin developers:
4+
- new plugin hook: `afterRenderer`
5+
- (previously private) DOM helpers are now exposed as `Handosontable.Dom` (see [api](https://github.com/warpech/jquery-handsontable/blob/master/src/3rdparty/walkontable/src/dom.js))
6+
17
## [0.9.18](https://github.com/warpech/jquery-handsontable/tree/v0.9.18) (Sep 19, 2013)
28

39
Features:

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "handsontable",
3-
"version": "0.9.18",
3+
"version": "0.9.19",
44
"main": ["./dist/jquery.handsontable.full.js", "./dist/jquery.handsontable.full.css"],
55
"ignore": [
66
"**/.*",

dist/jquery.handsontable.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Handsontable 0.9.18
2+
* Handsontable 0.9.19
33
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
44
*
55
* Copyright 2012, Marcin Warpechowski
66
* Licensed under the MIT license.
77
* http://handsontable.com/
88
*
9-
* Date: Thu Sep 19 2013 01:45:41 GMT+0200 (Central European Daylight Time)
9+
* Date: Tue Oct 01 2013 13:17:18 GMT+0200 (Central European Daylight Time)
1010
*/
1111

1212
.handsontable {

dist/jquery.handsontable.full.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Handsontable 0.9.18
2+
* Handsontable 0.9.19
33
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
44
*
55
* Copyright 2012, Marcin Warpechowski
66
* Licensed under the MIT license.
77
* http://handsontable.com/
88
*
9-
* Date: Thu Sep 19 2013 01:45:41 GMT+0200 (Central European Daylight Time)
9+
* Date: Tue Oct 01 2013 13:17:18 GMT+0200 (Central European Daylight Time)
1010
*/
1111

1212
.handsontable {

dist/jquery.handsontable.full.js

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Handsontable 0.9.18
2+
* Handsontable 0.9.19
33
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
44
*
55
* Copyright 2012, Marcin Warpechowski
66
* Licensed under the MIT license.
77
* http://handsontable.com/
88
*
9-
* Date: Thu Sep 19 2013 01:45:41 GMT+0200 (Central European Daylight Time)
9+
* Date: Tue Oct 01 2013 13:17:18 GMT+0200 (Central European Daylight Time)
1010
*/
1111
/*jslint white: true, browser: true, plusplus: true, indent: 4, maxerr: 50 */
1212

@@ -2745,7 +2745,7 @@ Handsontable.Core = function (rootElement, userSettings) {
27452745
/**
27462746
* Handsontable version
27472747
*/
2748-
this.version = '0.9.18'; //inserted by grunt from package.json
2748+
this.version = '0.9.19'; //inserted by grunt from package.json
27492749
};
27502750

27512751
var DefaultSettings = function () {
@@ -3209,7 +3209,14 @@ Handsontable.TableView.prototype.applyCellTypeMethod = function (methodName, td,
32093209
, cellProperties = this.instance.getCellMeta(row, col)
32103210
, method = Handsontable.helper.getCellMethod(methodName, cellProperties[methodName]); //methodName is 'renderer' or 'editor'
32113211

3212-
return method(this.instance, td, row, col, prop, this.instance.getDataAtRowProp(row, prop), cellProperties);
3212+
var value = this.instance.getDataAtRowProp(row, prop);
3213+
var res = method(this.instance, td, row, col, prop, value, cellProperties);
3214+
3215+
if (methodName === 'renderer') {
3216+
this.instance.PluginHooks.run('afterRenderer', td, row, col, prop, value, cellProperties);
3217+
}
3218+
3219+
return res;
32133220
};
32143221

32153222
/**
@@ -3292,6 +3299,13 @@ Handsontable.TableView.prototype.maximumVisibleElementHeight = function (top) {
32923299
return rootHeight - top;
32933300
};
32943301

3302+
/**
3303+
* DOM helper optimized for maximum performance
3304+
* It is recommended for Handsontable plugins and renderers, because it is much faster than jQuery
3305+
* @type {WalkonableDom}
3306+
*/
3307+
Handsontable.Dom = new WalkontableDom();
3308+
32953309
/**
32963310
* Returns true if keyCode represents a printable character
32973311
* @param {Number} keyCode
@@ -4861,6 +4875,7 @@ Handsontable.PluginHookClass = (function () {
48614875
afterLoadData : [],
48624876
afterUpdateSettings: [],
48634877
afterRender : [],
4878+
afterRenderer : [],
48644879
afterChange : [],
48654880
afterValidate: [],
48664881
afterGetCellMeta: [],

dist/jquery.handsontable.js

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Handsontable 0.9.18
2+
* Handsontable 0.9.19
33
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
44
*
55
* Copyright 2012, Marcin Warpechowski
66
* Licensed under the MIT license.
77
* http://handsontable.com/
88
*
9-
* Date: Thu Sep 19 2013 01:45:41 GMT+0200 (Central European Daylight Time)
9+
* Date: Tue Oct 01 2013 13:17:18 GMT+0200 (Central European Daylight Time)
1010
*/
1111
/*jslint white: true, browser: true, plusplus: true, indent: 4, maxerr: 50 */
1212

@@ -2745,7 +2745,7 @@ Handsontable.Core = function (rootElement, userSettings) {
27452745
/**
27462746
* Handsontable version
27472747
*/
2748-
this.version = '0.9.18'; //inserted by grunt from package.json
2748+
this.version = '0.9.19'; //inserted by grunt from package.json
27492749
};
27502750

27512751
var DefaultSettings = function () {
@@ -3209,7 +3209,14 @@ Handsontable.TableView.prototype.applyCellTypeMethod = function (methodName, td,
32093209
, cellProperties = this.instance.getCellMeta(row, col)
32103210
, method = Handsontable.helper.getCellMethod(methodName, cellProperties[methodName]); //methodName is 'renderer' or 'editor'
32113211

3212-
return method(this.instance, td, row, col, prop, this.instance.getDataAtRowProp(row, prop), cellProperties);
3212+
var value = this.instance.getDataAtRowProp(row, prop);
3213+
var res = method(this.instance, td, row, col, prop, value, cellProperties);
3214+
3215+
if (methodName === 'renderer') {
3216+
this.instance.PluginHooks.run('afterRenderer', td, row, col, prop, value, cellProperties);
3217+
}
3218+
3219+
return res;
32133220
};
32143221

32153222
/**
@@ -3292,6 +3299,13 @@ Handsontable.TableView.prototype.maximumVisibleElementHeight = function (top) {
32923299
return rootHeight - top;
32933300
};
32943301

3302+
/**
3303+
* DOM helper optimized for maximum performance
3304+
* It is recommended for Handsontable plugins and renderers, because it is much faster than jQuery
3305+
* @type {WalkonableDom}
3306+
*/
3307+
Handsontable.Dom = new WalkontableDom();
3308+
32953309
/**
32963310
* Returns true if keyCode represents a printable character
32973311
* @param {Number} keyCode
@@ -4861,6 +4875,7 @@ Handsontable.PluginHookClass = (function () {
48614875
afterLoadData : [],
48624876
afterUpdateSettings: [],
48634877
afterRender : [],
4878+
afterRenderer : [],
48644879
afterChange : [],
48654880
afterValidate: [],
48664881
afterGetCellMeta: [],

dist_wc/x-handsontable/jquery.handsontable.full.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Handsontable 0.9.18
2+
* Handsontable 0.9.19
33
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
44
*
55
* Copyright 2012, Marcin Warpechowski
66
* Licensed under the MIT license.
77
* http://handsontable.com/
88
*
9-
* Date: Thu Sep 19 2013 01:45:41 GMT+0200 (Central European Daylight Time)
9+
* Date: Tue Oct 01 2013 13:17:18 GMT+0200 (Central European Daylight Time)
1010
*/
1111

1212
.handsontable {

dist_wc/x-handsontable/jquery.handsontable.full.js

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Handsontable 0.9.18
2+
* Handsontable 0.9.19
33
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
44
*
55
* Copyright 2012, Marcin Warpechowski
66
* Licensed under the MIT license.
77
* http://handsontable.com/
88
*
9-
* Date: Thu Sep 19 2013 01:45:41 GMT+0200 (Central European Daylight Time)
9+
* Date: Tue Oct 01 2013 13:17:18 GMT+0200 (Central European Daylight Time)
1010
*/
1111
/*jslint white: true, browser: true, plusplus: true, indent: 4, maxerr: 50 */
1212

@@ -2745,7 +2745,7 @@ Handsontable.Core = function (rootElement, userSettings) {
27452745
/**
27462746
* Handsontable version
27472747
*/
2748-
this.version = '0.9.18'; //inserted by grunt from package.json
2748+
this.version = '0.9.19'; //inserted by grunt from package.json
27492749
};
27502750

27512751
var DefaultSettings = function () {
@@ -3209,7 +3209,14 @@ Handsontable.TableView.prototype.applyCellTypeMethod = function (methodName, td,
32093209
, cellProperties = this.instance.getCellMeta(row, col)
32103210
, method = Handsontable.helper.getCellMethod(methodName, cellProperties[methodName]); //methodName is 'renderer' or 'editor'
32113211

3212-
return method(this.instance, td, row, col, prop, this.instance.getDataAtRowProp(row, prop), cellProperties);
3212+
var value = this.instance.getDataAtRowProp(row, prop);
3213+
var res = method(this.instance, td, row, col, prop, value, cellProperties);
3214+
3215+
if (methodName === 'renderer') {
3216+
this.instance.PluginHooks.run('afterRenderer', td, row, col, prop, value, cellProperties);
3217+
}
3218+
3219+
return res;
32133220
};
32143221

32153222
/**
@@ -3292,6 +3299,13 @@ Handsontable.TableView.prototype.maximumVisibleElementHeight = function (top) {
32923299
return rootHeight - top;
32933300
};
32943301

3302+
/**
3303+
* DOM helper optimized for maximum performance
3304+
* It is recommended for Handsontable plugins and renderers, because it is much faster than jQuery
3305+
* @type {WalkonableDom}
3306+
*/
3307+
Handsontable.Dom = new WalkontableDom();
3308+
32953309
/**
32963310
* Returns true if keyCode represents a printable character
32973311
* @param {Number} keyCode
@@ -4861,6 +4875,7 @@ Handsontable.PluginHookClass = (function () {
48614875
afterLoadData : [],
48624876
afterUpdateSettings: [],
48634877
afterRender : [],
4878+
afterRenderer : [],
48644879
afterChange : [],
48654880
afterValidate: [],
48664881
afterGetCellMeta: [],

handsontable.jquery.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "handsontable",
33
"title": "Handsontable",
4-
"version": "0.9.18",
4+
"version": "0.9.19",
55
"author": {
66
"name": "Marcin Warpechowski",
77
"email": "[email protected]",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"url": "https://github.com/warpech/jquery-handsontable/issues"
77
},
88
"author": "Marcin Warpechowski <[email protected]>",
9-
"version": "0.9.18",
9+
"version": "0.9.19",
1010
"devDependencies": {
1111
"grunt": "~0.4.1",
1212
"grunt-replace": "~0.4.4",

0 commit comments

Comments
 (0)