Skip to content
This repository

"TypeError: root is not a function" when click on item named "watch" #93

hw-dwalter opened this Issue November 30, 2012 · 3 comments

2 participants

Daniel Walter Rodney Rehm
Daniel Walter

My firefox (17.0) raises an error wehn i click on the item named "watch". The following code demonstrates this behaviour:

    selector: '.context-menu-one', 
    callback: function(key, options) {
        var m = "clicked: " + key;
        window.console && console.log(m) || alert(m); 
    items: {
        "watch": {name: "Edit", icon: "edit"}
Rodney Rehm

woha, that's… interesting. I'll look into it. Fiddle

Rodney Rehm

I've fixed this locally. There won't be a new version released until christmas, I think.

In the mean time you can patch this yourself, replace Line 743 with the following:

if ($.isFunction(root.callbacks[key]) &&, key)) {
Daniel Walter
Rodney Rehm rodneyrehm closed this December 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.