lib/browser/delegate_native.rb in isomorfeus-preact-23.7.0.rc5 vs lib/browser/delegate_native.rb in isomorfeus-preact-23.8.0.rc1
- old
+ new
@@ -1,5 +1,7 @@
+# backtick_javascript: true
+
module Browser
module DelegateNative
# Provides a default initializer. This should be overridden in all but the
# simplest cases.
def initialize native
@@ -55,10 +57,10 @@
}
end
end
def respond_to_missing? message, include_all
- return true if message.end_with? '='
+ message = message.chop if message.end_with? '='
property_name = property_for_message(message)
return true if `#{property_name} in #@native`
false
end