Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created January 16, 2015 16:49
Show Gist options
  • Save jcoyne/5e69009f515db51cc064 to your computer and use it in GitHub Desktop.
Save jcoyne/5e69009f515db51cc064 to your computer and use it in GitHub Desktop.
var Foo = function(element, options) {
var basic_manager = new HydraEditor.FieldManager(element, options);
basic_manager.createNewField = function(stuff) {
this.updateName(stuff); // Causes: "undefined is not a function"
}
return basic_manager;
}
Foo.prototype = {
updateName: function (stuff) {
}
}
f.new Foo(this, options)
f.createNewField('blah')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment