add deprecation message for commmandKeyBinding

This commit is contained in:
nightwing 2013-09-25 23:26:18 +04:00
commit 04cc031da6
3 changed files with 40 additions and 5 deletions

View file

@ -1,3 +1,28 @@
* New Features
- Accessibility Theme for Ace (Peter Xiao)
- use snipetManager for expanding emmet snippets
- update jshint to 2.1.4
- improve php syntax checker (jdalegonzalez)
- add option for autoresizing
- add option for autohiding vertical scrollbar
- improvements to highlighting of xml like languages (danyaPostfactum)
- add support for autocompletion and snippets (gjtorikyan danyaPostfactum and others)
- add option to merge similar changes in undo history
- add scrollPastEnd option
- 6a87d97 Merge pull request #1494 from danyaPostfactum/snippetcompleter
- use html5 dragndrop for text dragging (danyaPostfactum)
* API Changes
- fixed typo in HashHandler commmandManager
* new language modes
- Nix (Zef Hemel)
- Protobuf (Zef Hemel)
- Soy
- Handlebars
-
2013.06.04 Version 1.1.01
- Improved emacs keybindings (Robert Krahn)

View file

@ -19,11 +19,7 @@ var EventEmitter = require("../lib/event_emitter").EventEmitter;
**/
var CommandManager = function(platform, commands) {
this.platform = platform;
this.commands = this.byName = {};
this.commandKeyBinding = {};
this.addCommands(commands);
HashHandler.call(this, commands, platform);
this.setDefaultHandler("exec", function(e) {
return e.command.exec(e.editor, e.args || {});

View file

@ -38,6 +38,20 @@ function HashHandler(config, platform) {
this.platform = platform || (useragent.isMac ? "mac" : "win");
this.commands = {};
this.commandKeyBinding = {};
// todo remove this after a while
if (this.__defineGetter__ && this.__defineSetter__ && typeof console != "undefined" && console.error) {
this.__defineGetter__("commmandKeyBinding", function() {
console.error("commmandKeyBinding has too many m's. use commandKeyBinding")
return this.commandKeyBinding;
});
this.__defineSetter__("commmandKeyBinding", function(val) {
console.error("commmandKeyBinding has too many m's. use commandKeyBinding")
return this.commandKeyBinding = val;
});
} else {
this.commmandKeyBinding = commandKeyBinding;
}
this.addCommands(config);
};