Skip to content
This repository has been archived by the owner on Oct 27, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:enyojs/enyo
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Orvell committed Jan 23, 2012
2 parents 7cb02b6 + 873d70d commit fa43aa4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 34 deletions.
32 changes: 1 addition & 31 deletions source/boot/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,7 @@
result = result.replace(this.rewritePattern, fn);
} while (working);
return result;
}/*,
unwrite: function(inPath) {
for (var n in this.paths) {
var p = this.paths[n] || '';
var l = p.length;
// if inPath is rooted at path p, replace that path with n (p's alias)
if (inPath.slice(0, l) == p) {
return "$" + n + inPath.slice(l);
}
}
return inPath;
}*/
}
};

enyo.loaderFactory = function(inMachine) {
Expand Down Expand Up @@ -236,25 +225,6 @@
}
//
alias = parts.join("-");
/*
alias = parts.join("/");
//
// remove $enyo, $lib prefixi
//
// e.g. $enyo/knob -> knob package
// e.g. $lib/flarn -> flarn package
var deprefix = function(prefix) {
if (alias.slice(0, prefix.length) == prefix) {
alias = alias.slice(prefix.length + 1); // assumes a trailing slash
}
};
var p$ = enyo.path.paths;
deprefix(p$.enyo);
//deprefix(p$.lib);
//
// use "-" delimiter instead of "/" for aliasing
alias = alias.replace(/\//g, "-");
*/
}
return {
alias: alias,
Expand Down
4 changes: 2 additions & 2 deletions source/kernel/UiComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ enyo.kind({
indexOfClientControl: function(inControl) {
return enyo.indexOf(inControl, this.getClientControls());
},
getControlIndex: function() {
indexInContainer: function() {
return this.container.indexOfControl(this);
},
getClientIndex: function() {
clientIndexInContainer: function() {
return this.container.indexOfClientControl(this);
},
// children
Expand Down
2 changes: 1 addition & 1 deletion source/scroll/Scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ enyo.kind({
var ua = navigator.userAgent;
for (var i=0, t, m; t=this.osInfo[i]; i++) {
if (this.calcOsVersion(ua, t.os) < t.version) {
return true;
return false;
}
}
return true;
Expand Down
17 changes: 17 additions & 0 deletions tools/minify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# the folder this script is in (*/enyo/tools)
TOOLS=$(cd `dirname $0`; pwd)
# enyo location
ENYO=$TOOLS/..
# minify script location
MINIFY=$TOOLS/minifier/minify.js

# check for node, but quietly
if command -v node >/dev/null 2>&1; then
# use node to invoke minify with a known path to enyo and imported parameters
node $MINIFY -enyo $ENYO $@
else
echo "No node found in path"
exit 1
fi

0 comments on commit fa43aa4

Please sign in to comment.