Extending KeyTables Plugin

Extending KeyTables Plugin

naddy19naddy19 Posts: 8Questions: 0Answers: 0
edited July 2012 in KeyTable
Hi,

I am trying to extend the keytables plugin to make it work a little differently. I am using the method of extending a jQUery plugin as demonstrated by Matt Huggins as shown here https://github.com/mhuggins/jquery-ui-autocomplete-hints/blob/master/jquery.autocomplete.js

But here i m facing few problems

1. I am not able to get the keytable as [code] $['KeyTable'].prototype [/code] instead i have to use [code]KeyTable.prototype[/code]
2. I am not able to get all the functions defined by keyTables using
[code]
for (var i in plugin) {
if (typeof(plugin[i]) === 'function') {
functions[i] = plugin[i];
}
}
[/code]
instead , i am getting only the constructor of the keytable.

Anybody please help me extending the keyTable plugin and calling the internal functions from my extended file.

Replies

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    KeyTable is not a jQuery UI plug-in, so following a jQuery UI plug-in probably won't get you very far!

    The functions in KeyTable are private and cannot be overridden externally - so if you want to alter them, you need to just change the source of the file.

    Allan
This discussion has been closed.