(dist) wrap script in anonymous function

nohash
cloudhead 14 years ago
parent dbc0e408be
commit 92db519390

@ -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

@ -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) {
});
};
})();

Loading…
Cancel
Save