diff options
Diffstat (limited to 'dom/bindings/Record.h')
-rw-r--r-- | dom/bindings/Record.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/bindings/Record.h b/dom/bindings/Record.h index b7f7b01b0..d6ab31699 100644 --- a/dom/bindings/Record.h +++ b/dom/bindings/Record.h @@ -77,4 +77,15 @@ private: } // namespace dom } // namespace mozilla +template<typename K, typename V> +class nsDefaultComparator<mozilla::dom::binding_detail::RecordEntry<K, V>, K> +{ +public: + bool Equals(const mozilla::dom::binding_detail::RecordEntry<K, V>& aEntry, + const K& aKey) const + { + return aEntry.mKey == aKey; + } +}; + #endif // mozilla_dom_Record_h |