Permalink
Browse files

Updated debug trace excludes

  • Loading branch information...
1 parent fe75bc5 commit 17a2127652d8d785653b1cca1ce150d6dbabbab5 @pieterv pieterv committed Apr 16, 2012
Showing with 11 additions and 3 deletions.
  1. +1 −1 js/todos/build/todos.js
  2. +5 −1 js/todos/src/context/main.js
  3. +5 −1 js/todos/src/context/todo.js
View
Oops, something went wrong.
@@ -67,7 +67,11 @@ define( {
},
plugins: [
- { module: 'wire/debug', trace: true }, // Uncomment to see what's going on inside this spec
+ { module: 'wire/debug', // Uncomment to see what's going on inside this spec
+ trace: {
+ pointcut: /^((?!(model$|constructor$|_)).*)$/ // Stop constructors being wrapped as functions
+ }
+ },
{ module: 'wire/jquery/dom' },
{ module: 'wire/backbone/events' }
]
@@ -78,7 +78,11 @@ define( {
},
plugins: [
- { module: 'wire/debug', trace: true }, // Uncomment to see what's going on inside this spec
+ { module: 'wire/debug', // Uncomment to see what's going on inside this spec
+ trace: {
+ pointcut: /^((?!(model$|constructor$|_)).*)$/ // Stop constructors being wrapped as functions
+ }
+ },
{ module: 'wire/backbone/events' }
]

0 comments on commit 17a2127

Please sign in to comment.