-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This branch is presently beta. Check the issues section for known bugs.
Strict-Tests There are about 150 test cases in /dev/tests/src/strictSignalTests.js
Anyone want to try writing type-checking tests for DOM Elements, Window objects, Functions? Anyone?
jQuery has type-checking helpers, dojo has type-checking helpers, you probably have your own custom set. How to get these into Signals without cut-pasting or creating an unnecessary dependency?
Currently, I'm checking if jQuery is undefined. If not, I use jQuery's implementations. If it's missing, I provide implementations -- aka copies? ;) -- of:
- hasOwn
- isArray
- isNumeric
- isFunction
- isWindow
- isPlainObject
This could probably be modified ever-so-slightly so that we don't look for jQuery per-se, but any object containing these named-functions. (Just because I like strong-typing doesn't mean I don't "get" duck-typing)
Custom event/messaging system for JavaScript inspired by AS3-Signals. For a more in-depth introduction read the JS-Signals Project Page and visit the links below.