Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't need/want Model.Log.

  • Loading branch information...
commit 229115e9c4ac873e0447dab8d1e46ca79b491f72 1 parent af04f3a
@benpickles authored
View
1  Makefile
@@ -8,7 +8,6 @@ SRC = src/header.js \
src/model_class_methods.js \
src/model_errors.js \
src/collection.js \
- src/model_log.js \
src/model_rest.js \
src/null_persistence.js \
src/model_local_storage.js \
View
3  src/model_log.js
@@ -1,3 +0,0 @@
-Model.Log = function() {
- if (window.console) window.console.log.apply(window.console, arguments);
-};
View
4 src/model_rest.js
@@ -154,7 +154,9 @@
jQuery.parseJSON(xhr.responseText) :
undefined;
} catch(e) {
- Model.Log(e);
+ try {
+ console.log(e)
+ } catch(_) {}
}
};
})(Model);
View
1  test/index.html
@@ -20,7 +20,6 @@
<script src="../src/model_errors.js"></script>
<script src="../src/model_model.js"></script>
<script src="../src/model_local_storage.js"></script>
-<script src="../src/model_log.js"></script>
<script src="../src/null_persistence.js"></script>
<script src="../src/model_rest.js"></script>
<script src="../src/model_uid.js"></script>
Please sign in to comment.
Something went wrong with that request. Please try again.