Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug fix

  • Loading branch information...
commit 43e6be9cb77a2d612d3c79269f296ff399348ecc 1 parent bf7b7f9
@k2nr authored
Showing with 7 additions and 7 deletions.
  1. +3 −3 coffee/model.coffee
  2. +1 −1  manifest.json
  3. +3 −3 model.js
View
6 coffee/model.coffee
@@ -20,7 +20,7 @@ getIMapFirst = ->
pageMap = @getSetting "pageMap"
unless window.location.href?.length > 0
- return nmap
+ return imap
myMap = imap
for url,map of pageMap
@@ -35,14 +35,14 @@ getCMapFirst = ->
pageMap = @getSetting "pageMap"
unless window.location.href?.length > 0
- return nmap
+ return cmap
myMap = cmap
for url,map of pageMap
if @isUrlMatched( window.location.href, url )
g.extend( map.cmap, myMap )
- @getIMap = -> myMap
+ @getCMap = -> myMap
myMap
getAliasFirst = ->
View
2  manifest.json
@@ -1,6 +1,6 @@
{
"name": "Vichrome",
- "version": "0.5.1",
+ "version": "0.5.2",
"description": "vi like interface for Google Chrome™. For every Google Chrome™ user who hate using a mouse.",
"background_page": "background.html",
"options_page": "options.html",
View
6 model.js
@@ -26,7 +26,7 @@
imap = g.object(this.getSetting("keyMappingInsert"));
pageMap = this.getSetting("pageMap");
if (!(((_ref = window.location.href) != null ? _ref.length : void 0) > 0)) {
- return nmap;
+ return imap;
}
myMap = imap;
for (url in pageMap) {
@@ -45,7 +45,7 @@
cmap = g.object(this.getSetting("keyMappingCommand"));
pageMap = this.getSetting("pageMap");
if (!(((_ref = window.location.href) != null ? _ref.length : void 0) > 0)) {
- return nmap;
+ return cmap;
}
myMap = cmap;
for (url in pageMap) {
@@ -54,7 +54,7 @@
g.extend(map.cmap, myMap);
}
}
- this.getIMap = function() {
+ this.getCMap = function() {
return myMap;
};
return myMap;
Please sign in to comment.
Something went wrong with that request. Please try again.