Skip to content

Commit

Permalink
Changed the manual throwDebugMessage to the debug macro.
Browse files Browse the repository at this point in the history
Also removed the __DEBUG_METHOD again from the .jshintrc
  • Loading branch information
Kanaye committed Sep 11, 2016
1 parent c0115f1 commit fb75852
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/.jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

"globals": {
"blocks": true,
"define": true,
"__DEBUG_METHOD": true
"define": true
}
}
4 changes: 1 addition & 3 deletions src/mvc/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,7 @@ define([
}

if (this._started) {
// @if DEBUG
blocks.debug.throwMessage('Views can not be constructed / added after the application has been started. Try to add your views synchronous before document.readyState is "complete".', __DEBUG_METHOD, 'Error');
// @endif
// @debugMessage('Views can not be constructed / added after the application has been started. Try to add your views synchronous before document.readyState is "complete".', Error);
return;
}

Expand Down
4 changes: 1 addition & 3 deletions src/query/observable.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,7 @@ define([
array = blocks.unwrap(array);

if (!blocks.isArray(array) && !!array) {
//@if DEBUG
blocks.debug.throwMessage('Array-Observables can not be reseted to a non array type! Reset got aborted.', __DEBUG_METHOD, 'Warning');
//@endif
//@debugMessage('Array-Observables can not be reseted to a non array type! Reset got aborted.', Warning);
return;
}

Expand Down

0 comments on commit fb75852

Please sign in to comment.