Skip to content
Browse files

Updated stitch to compile .coffee dependencies, removing the need to …

…pre-compile a console.js
  • Loading branch information...
1 parent 914d4e2 commit 3e54a288fb4147e03831a3364cecb85c711216a9 @trabianmatt trabianmatt committed
Showing with 2 additions and 65 deletions.
  1. +0 −63 deps/console.js
  2. +2 −2 package.json
View
63 deps/console.js
@@ -1,63 +0,0 @@
-(function() {
- var log, stringify, _oldAlert,
- __slice = Array.prototype.slice;
-
- stringify = function(statements) {
- var statement, strings;
- strings = (function() {
- var _i, _len, _results;
- _results = [];
- for (_i = 0, _len = statements.length; _i < _len; _i++) {
- statement = statements[_i];
- if (_.isString(statement)) {
- _results.push(statement);
- } else {
- _results.push(JSON.stringify(statement));
- }
- }
- return _results;
- })();
- return strings.join(' ');
- };
-
- log = function(level, statements) {
- Ti.API.log(level, stringify(statements));
- };
-
- this.console = {
- debug: function() {
- var statements;
- statements = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- return this.log(statements);
- },
- log: function() {
- var statements;
- statements = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- return log('debug', statements);
- },
- info: function() {
- var statements;
- statements = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- return log('info', statements);
- },
- warn: function() {
- var statements;
- statements = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- return log('warn', statements);
- },
- error: function() {
- var statements;
- statements = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- return log('error', statements);
- }
- };
-
- _oldAlert = this.alert;
-
- this.alert = function() {
- var statements;
- statements = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- _oldAlert(stringify(statements));
- };
-
-}).call(this);
View
4 package.json
@@ -1,6 +1,6 @@
{
"name": "titanium-backbone",
- "version": "0.0.15",
+ "version": "0.0.16",
"description": "Framework for Titanium apps built with Backbone",
"private": true,
"dependencies": {
@@ -24,7 +24,7 @@
"dependencies": [
"node_modules/underscore/underscore.js",
"node_modules/backbone/backbone.js",
- "deps/console.js"
+ "deps/console.coffee"
]
}
}

0 comments on commit 3e54a28

Please sign in to comment.
Something went wrong with that request. Please try again.