lib/react/component/state.rb in isomorfeus-react-16.10.4 vs lib/react/component/state.rb in isomorfeus-react-16.10.5
- old
+ new
@@ -11,11 +11,11 @@
@native.JS.setState(new_state, `function() { block.$call(); }`)
else
@native.JS.setState(new_state, `null`)
end
else
- return nil if `typeof #@native.state[key] == "undefined"`
+ return nil if `typeof #@native.state[key] === "undefined"`
@native.JS[:state].JS[key]
end
end
def set_state(updater, &block)
@@ -47,6 +47,6 @@
return new_native;
}
end
end
end
-end
\ No newline at end of file
+end