Reorder args

This commit is contained in:
probablycorey
2013-11-14 16:01:51 -08:00
parent c43f277c5b
commit fd443a8b68

View File

@@ -126,7 +126,7 @@ class Keymap
else
keystroke.split(' ')[0] == mapping.keystroke.split(' ')[0]
mappingsMatchingElement: (mappings, element) ->
mappingsMatchingElement: (element, mappings=@allMappings()) ->
mappings = mappings.filter ({selector}) -> $(element).closest(selector).length > 0
mappings.sort (a, b) ->
if b.specificity == a.specificity