This adds another method, .onRuleChange, which fires its callback any time the name of the matched media query rule changes. This can allow simpler and more efficient code vs multiple .onChange handers.
This PR also adds documentation for the new .onRuleChangemethod, corrects and improves documentation for .onChange, and adds missing documentation for the .get method.
This adds another method,
.onRuleChange
, which fires its callback any time the name of the matched media query rule changes. This can allow simpler and more efficient code vs multiple.onChange
handers.This PR also adds documentation for the new
.onRuleChange
method, corrects and improves documentation for.onChange
, and adds missing documentation for the.get
method.