fix build without examples, version can contain more than numbers

This commit is contained in:
j 2014-10-31 19:12:45 +01:00
parent 9651cec448
commit bb931c006f
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ Ox.SHORT_MONTHS = Ox.MONTHS.map(function(val) {
//@ Ox.PATH <s> Path of Ox.js //@ Ox.PATH <s> Path of Ox.js
Ox.PATH = (function() { Ox.PATH = (function() {
// IE8 can't apply slice to NodeLists, see Ox.slice // IE8 can't apply slice to NodeLists, see Ox.slice
var index, regexp = /Ox\.js(\?\d+|)$/, var index, regexp = /Ox\.js(\?.+|)$/,
scripts = document.getElementsByTagName('script'), src; scripts = document.getElementsByTagName('script'), src;
for (index = scripts.length - 1; index >= 0; index--) { for (index = scripts.length - 1; index >= 0; index--) {
src = scripts[index].src; src = scripts[index].src;

View file

@ -257,7 +257,7 @@ def build_oxjs(downloads=False, geo=False):
lambda x: not re.search('^[._]', x), lambda x: not re.search('^[._]', x),
os.listdir(root_path + 'examples/') os.listdir(root_path + 'examples/')
)) ))
), [])), ), [])) if os.path.exists(root_path + 'examples/') else (),
'readme': list(map( 'readme': list(map(
lambda x: { lambda x: {
'date': time.strftime( 'date': time.strftime(