fastbinder
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -89,18 +89,4 @@ /** | ||
function keyPressed(e, key) { | ||
var keys = { | ||
'LEFT_CLICK': 1, | ||
'MIDDLE_CLICK': 2, | ||
'RIGHT_CLICK': 3, | ||
'TAB': 9, | ||
'ENTER': 13, | ||
'ESCAPE': 27, | ||
'LEFT_ARROW': 37, | ||
'UP_ARROW': 38, | ||
'RIGHT_ARROW': 39, | ||
'DOWN_ARROW': 40, | ||
'TILDE': 192 | ||
}; | ||
return e && e.which === keys[key]; | ||
function isEnterKey(e) { | ||
return e && e.which === 13; | ||
} | ||
@@ -188,3 +174,3 @@ | ||
if (target.is('input, textarea')) { | ||
if (keyPressed(e, 'ENTER')) { | ||
if (isEnterKey(e)) { | ||
fireEventHandler(target, 'on-submit', e); | ||
@@ -229,2 +215,5 @@ } else { | ||
$.fastbinder.on = genericBinder; | ||
$.fastbinder.strToFunction = strToFunction; | ||
$.fastbinder.getController = getController; | ||
$.fastbinder.fireEventHandler = fireEventHandler; | ||
@@ -231,0 +220,0 @@ $.fastbinder.defaults = { |
{ | ||
"name": "fastbinder", | ||
"description": "Fast and worry-free dynamic event binding", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"repository": "https://github.com/andrewchilds/fastbinder.git", | ||
@@ -12,14 +12,23 @@ "author": { | ||
"engines": { | ||
"node": "0.10.x", | ||
"npm": "2.x" | ||
"node": "5.x", | ||
"npm": "3.x" | ||
}, | ||
"scripts": { | ||
"test": "grunt test" | ||
"test": "./node_modules/grunt-cli/bin/grunt test" | ||
}, | ||
"dependencies": { | ||
"grunt": "0.4.2", | ||
"grunt-karma": "*", | ||
"grunt-contrib-jshint": "0.8.0", | ||
"grunt-contrib-watch": "0.5.3" | ||
"devDependencies": { | ||
"grunt": "0.4.5", | ||
"grunt-cli": "0.1.13", | ||
"grunt-contrib-jshint": "1.0.0", | ||
"grunt-contrib-watch": "1.0.0", | ||
"grunt-karma": "0.12.1", | ||
"jasmine-core": "2.4.1", | ||
"karma": "0.13.22", | ||
"karma-chrome-launcher": "0.2.2", | ||
"karma-coffee-preprocessor": "0.3.0", | ||
"karma-jasmine": "0.3.8", | ||
"karma-jasmine-jquery": "0.1.1", | ||
"karma-phantomjs-launcher": "1.0.0", | ||
"phantomjs-prebuilt": "2.1.5" | ||
} | ||
} |
@@ -79,6 +79,2 @@ # Fastbinder | ||
```js | ||
``` | ||
### Setting a Controller Scope | ||
@@ -85,0 +81,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
876017
0
93
18401
1
13
143
1
- Removedgrunt@0.4.2
- Removedgrunt-contrib-jshint@0.8.0
- Removedgrunt-contrib-watch@0.5.3
- Removedgrunt-karma@*
- Removed@colors/colors@1.5.0(transitive)
- Removed@socket.io/component-emitter@3.1.2(transitive)
- Removed@types/cookie@0.4.1(transitive)
- Removed@types/cors@2.8.17(transitive)
- Removed@types/node@22.10.2(transitive)
- Removedabbrev@1.1.1(transitive)
- Removedaccepts@1.3.8(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedargparse@0.1.16(transitive)
- Removedasync@0.1.22(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase64id@2.0.0(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbody-parser@1.20.3(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@3.0.3(transitive)
- Removedbytes@3.1.2(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedcli@0.4.5(transitive)
- Removedcliui@7.0.4(transitive)
- Removedcoffee-script@1.3.3(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcolors@0.6.2(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconnect@3.7.0(transitive)
- Removedconsole-browserify@0.1.6(transitive)
- Removedcontent-type@1.0.5(transitive)
- Removedcookie@0.7.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcors@2.8.5(transitive)
- Removedcustom-event@1.0.1(transitive)
- Removeddate-format@4.0.14(transitive)
- Removeddateformat@1.0.2-1.2.3(transitive)
- Removeddebug@0.7.42.6.94.3.74.4.0(transitive)
- Removeddepd@2.0.0(transitive)
- Removeddestroy@1.2.0(transitive)
- Removeddi@0.0.1(transitive)
- Removeddom-serialize@2.2.1(transitive)
- Removeddomelementtype@1.3.1(transitive)
- Removeddomhandler@2.1.0(transitive)
- Removeddomutils@1.1.6(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedee-first@1.1.1(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedencodeurl@1.0.2(transitive)
- Removedengine.io@6.6.2(transitive)
- Removedengine.io-parser@5.2.3(transitive)
- Removedent@2.2.2(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.0.0(transitive)
- Removedescalade@3.2.0(transitive)
- Removedescape-html@1.0.3(transitive)
- Removedesprima@1.0.4(transitive)
- Removedeventemitter2@0.4.14(transitive)
- Removedeventemitter3@4.0.7(transitive)
- Removedexit@0.1.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedfaye-websocket@0.4.4(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfinalhandler@1.1.2(transitive)
- Removedfindup-sync@0.1.3(transitive)
- Removedflatted@3.3.2(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedfs-extra@8.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgaze@0.4.3(transitive)
- Removedget-caller-file@2.0.5(transitive)
- Removedget-intrinsic@1.2.6(transitive)
- Removedgetobject@0.1.0(transitive)
- Removedglob@3.1.213.2.117.2.3(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedglobule@0.1.0(transitive)
- Removedgopd@1.2.0(transitive)
- Removedgraceful-fs@1.1.141.2.34.2.11(transitive)
- Removedgrunt@0.4.2(transitive)
- Removedgrunt-contrib-jshint@0.8.0(transitive)
- Removedgrunt-contrib-watch@0.5.3(transitive)
- Removedgrunt-karma@4.0.2(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhooker@0.2.3(transitive)
- Removedhtmlparser2@3.3.0(transitive)
- Removedhttp-errors@2.0.0(transitive)
- Removedhttp-proxy@1.18.1(transitive)
- Removediconv-lite@0.2.110.4.24(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@1.0.22.0.4(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedis-regex@1.2.1(transitive)
- Removedisarray@0.0.1(transitive)
- Removedisbinaryfile@4.0.10(transitive)
- Removedjs-yaml@2.0.5(transitive)
- Removedjshint@2.4.4(transitive)
- Removedjsonfile@4.0.0(transitive)
- Removedkarma@6.4.4(transitive)
- Removedlodash@0.9.21.0.22.4.24.17.21(transitive)
- Removedlog4js@6.9.1(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedmedia-typer@0.3.0(transitive)
- Removedmime@2.6.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimatch@0.2.140.3.03.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@2.0.02.1.3(transitive)
- Removednegotiator@0.6.3(transitive)
- Removednopt@1.0.102.0.0(transitive)
- Removednoptify@0.0.3(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedon-finished@2.3.02.4.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedparseurl@1.3.3(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedqjobs@1.2.0(transitive)
- Removedqs@0.5.66.13.0(transitive)
- Removedrange-parser@1.2.1(transitive)
- Removedraw-body@2.5.2(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedrequire-directory@2.1.1(transitive)
- Removedrequires-port@1.0.0(transitive)
- Removedrfdc@1.4.1(transitive)
- Removedrimraf@2.0.33.0.2(transitive)
- Removedsafe-regex-test@1.1.0(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetprototypeof@1.2.0(transitive)
- Removedshelljs@0.1.4(transitive)
- Removedside-channel@1.1.0(transitive)
- Removedside-channel-list@1.0.0(transitive)
- Removedside-channel-map@1.0.1(transitive)
- Removedside-channel-weakmap@1.0.2(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedsocket.io@4.8.1(transitive)
- Removedsocket.io-adapter@2.5.5(transitive)
- Removedsocket.io-parser@4.2.4(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedstatuses@1.5.02.0.1(transitive)
- Removedstreamroller@3.1.5(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedtiny-lr@0.0.4(transitive)
- Removedtmp@0.2.3(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtoidentifier@1.0.1(transitive)
- Removedtype-is@1.6.18(transitive)
- Removedua-parser-js@0.7.40(transitive)
- Removedunderscore@1.4.41.7.0(transitive)
- Removedunderscore.string@2.2.12.4.0(transitive)
- Removedundici-types@6.20.0(transitive)
- Removeduniversalify@0.1.2(transitive)
- Removedunpipe@1.0.0(transitive)
- Removedutils-merge@1.0.1(transitive)
- Removedvary@1.1.2(transitive)
- Removedvoid-elements@2.0.1(transitive)
- Removedwhich@1.0.9(transitive)
- Removedwrap-ansi@7.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedws@8.17.1(transitive)
- Removedy18n@5.0.8(transitive)
- Removedyargs@16.2.0(transitive)
- Removedyargs-parser@20.2.9(transitive)