(dist) wrap script in anonymous function

This commit is contained in:
cloudhead 2010-06-15 18:05:03 -04:00
parent dbc0e408be
commit 92db519390
2 changed files with 5 additions and 2 deletions

View File

@ -24,12 +24,14 @@ less:
@@mkdir -p dist
@@touch ${DIST}
@@cat ${HEADER} | sed s/@VERSION/${VERSION}/ > ${DIST}
@@echo "(function (window, undefined) {" >> ${DIST}
@@cat build/ecma-5.js\
${SRC}/parser.js\
${SRC}/functions.js\
${SRC}/tree/*.js\
${SRC}/tree.js\
${SRC}/browser.js >> ${DIST}
@@echo "})(window);" >> ${DIST}
@@echo ${DIST} built.
min: less

View File

@ -1,4 +1,6 @@
(function () {
//
// browser.js - client-side engine
//
var isFileProtocol = location.protocol === 'file:';
@ -292,4 +294,3 @@ less.Parser.importer = function (path, paths, callback) {
});
};
})();