|
1 | 1 | /**
|
2 |
| - * Handsontable 0.9.18 |
| 2 | + * Handsontable 0.9.19 |
3 | 3 | * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
|
4 | 4 | *
|
5 | 5 | * Copyright 2012, Marcin Warpechowski
|
6 | 6 | * Licensed under the MIT license.
|
7 | 7 | * http://handsontable.com/
|
8 | 8 | *
|
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) |
10 | 10 | */
|
11 | 11 | /*jslint white: true, browser: true, plusplus: true, indent: 4, maxerr: 50 */
|
12 | 12 |
|
@@ -2745,7 +2745,7 @@ Handsontable.Core = function (rootElement, userSettings) {
|
2745 | 2745 | /**
|
2746 | 2746 | * Handsontable version
|
2747 | 2747 | */
|
2748 |
| - this.version = '0.9.18'; //inserted by grunt from package.json |
| 2748 | + this.version = '0.9.19'; //inserted by grunt from package.json |
2749 | 2749 | };
|
2750 | 2750 |
|
2751 | 2751 | var DefaultSettings = function () {
|
@@ -3209,7 +3209,14 @@ Handsontable.TableView.prototype.applyCellTypeMethod = function (methodName, td,
|
3209 | 3209 | , cellProperties = this.instance.getCellMeta(row, col)
|
3210 | 3210 | , method = Handsontable.helper.getCellMethod(methodName, cellProperties[methodName]); //methodName is 'renderer' or 'editor'
|
3211 | 3211 |
|
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; |
3213 | 3220 | };
|
3214 | 3221 |
|
3215 | 3222 | /**
|
@@ -3292,6 +3299,13 @@ Handsontable.TableView.prototype.maximumVisibleElementHeight = function (top) {
|
3292 | 3299 | return rootHeight - top;
|
3293 | 3300 | };
|
3294 | 3301 |
|
| 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 | + |
3295 | 3309 | /**
|
3296 | 3310 | * Returns true if keyCode represents a printable character
|
3297 | 3311 | * @param {Number} keyCode
|
@@ -4861,6 +4875,7 @@ Handsontable.PluginHookClass = (function () {
|
4861 | 4875 | afterLoadData : [],
|
4862 | 4876 | afterUpdateSettings: [],
|
4863 | 4877 | afterRender : [],
|
| 4878 | + afterRenderer : [], |
4864 | 4879 | afterChange : [],
|
4865 | 4880 | afterValidate: [],
|
4866 | 4881 | afterGetCellMeta: [],
|
|
0 commit comments