aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngScenario/Scenario.js
diff options
context:
space:
mode:
authorAndreas Marek2013-05-06 10:20:15 +0200
committerPete Bacon Darwin2013-05-14 20:50:36 +0100
commit629fb37351ce5778a40a8bc8cd7c1385b382ce75 (patch)
tree4580bd3ea41c0bb492ac58e5f669cd9ecf3d2ce8 /src/ngScenario/Scenario.js
parent908821e20af311be905e24639dce273f2ea58434 (diff)
downloadangular.js-629fb37351ce5778a40a8bc8cd7c1385b382ce75.tar.bz2
feat(scenario): adds mousedown and mouseup event triggers to scenario
Added mousedown and mouseup event triggers to scenadio dsl 'element' expression. Added mousedown and mouseup to the custom jquery trigger method to generate real events.
Diffstat (limited to 'src/ngScenario/Scenario.js')
-rw-r--r--src/ngScenario/Scenario.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngScenario/Scenario.js b/src/ngScenario/Scenario.js
index f78e3931..4d848f2c 100644
--- a/src/ngScenario/Scenario.js
+++ b/src/ngScenario/Scenario.js
@@ -236,7 +236,7 @@ function callerFile(offset) {
(function(fn){
var parentTrigger = fn.trigger;
fn.trigger = function(type) {
- if (/(click|change|keydown|blur|input)/.test(type)) {
+ if (/(click|change|keydown|blur|input|mousedown|mouseup)/.test(type)) {
var processDefaults = [];
this.each(function(index, node) {
processDefaults.push(browserTrigger(node, type));