1
0
Fork 0
forked from 0x2620/oxjs

use Ox.Log

This commit is contained in:
j 2011-11-04 16:54:28 +01:00
commit dce2843303
50 changed files with 276 additions and 276 deletions

View file

@ -155,7 +155,7 @@ Ox.URL = function(options) {
views: {}
}, options);
Ox.print('Ox.URL options', self.options)
Ox.Log('Core', 'Ox.URL options', self.options)
self.previousURL = '';
@ -281,7 +281,7 @@ Ox.URL = function(options) {
}
function getSpanType(str, types) {
Ox.print('getSpanType', str, types)
Ox.Log('Core', 'getSpanType', str, types)
var canBeDate = types.indexOf('date') > -1,
canBeDuration = types.indexOf('duration') > -1,
canBeLocation = types.indexOf('location') > -1,
@ -296,7 +296,7 @@ Ox.URL = function(options) {
}
function parseCondition(str) {
Ox.print('PARSE COND', str)
Ox.Log('Core', 'PARSE COND', str)
var condition = {},
operators = ['!==', '==', '!=', '=', '!<', '<', '!>', '>'],
split;
@ -441,7 +441,7 @@ Ox.URL = function(options) {
state.type = self.options.types[0];
}
if (parts.length) {
Ox.print('ST', state.type, self.options.views)
Ox.Log('Core', 'ST', state.type, self.options.views)
if (self.options.views[state.type].list.indexOf(parts[0]) > -1) {
// list view
state.item = '';
@ -463,7 +463,7 @@ Ox.URL = function(options) {
}
}
function parseBeyondItem() {
Ox.print('pBI', state, parts.join('/'));
Ox.Log('Core', 'pBI', state, parts.join('/'));
var span, spanType, spanTypes;
if (
parts.length && state.item
@ -484,7 +484,7 @@ Ox.URL = function(options) {
spanType = state.view
? spanTypes[state.view]
: getSpanType(parts[0], Ox.unique(Ox.values(spanTypes)));
Ox.print('SPAN TYPE', spanType)
Ox.Log('Core', 'SPAN TYPE', spanType)
if (spanType) {
span = parseSpan(parts[0], spanType);
if (span) {
@ -533,7 +533,7 @@ Ox.URL = function(options) {
}
}
function parseBeyondSpan() {
Ox.print('pBS', state)
Ox.Log('Core', 'pBS', state)
var sortKeyIds, sortParts;
if (parts.length) {
sortParts = parts[0].split(',');