moel@348: // Knockout JavaScript library v2.1.0 moel@348: // (c) Steven Sanderson - http://knockoutjs.com/ moel@348: // License: MIT (http://www.opensource.org/licenses/mit-license.php) moel@348: moel@348: (function(window,document,navigator,undefined){ moel@348: var DEBUG=true; moel@348: !function(factory) { moel@348: // Support three module loading scenarios moel@348: if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') { moel@348: // [1] CommonJS/Node.js moel@348: var target = module['exports'] || exports; // module.exports is for Node.js moel@348: factory(target); moel@348: } else if (typeof define === 'function' && define['amd']) { moel@348: // [2] AMD anonymous module moel@348: define(['exports'], factory); moel@348: } else { moel@348: // [3] No module loader (plain "); moel@348: }; moel@348: moel@348: if (jQueryTmplVersion > 0) { moel@348: jQuery['tmpl']['tag']['ko_code'] = { moel@348: open: "__.push($1 || '');" moel@348: }; moel@348: jQuery['tmpl']['tag']['ko_with'] = { moel@348: open: "with($1) {", moel@348: close: "} " moel@348: }; moel@348: } moel@348: }; moel@348: moel@348: ko.jqueryTmplTemplateEngine.prototype = new ko.templateEngine(); moel@348: moel@348: // Use this one by default *only if jquery.tmpl is referenced* moel@348: var jqueryTmplTemplateEngineInstance = new ko.jqueryTmplTemplateEngine(); moel@348: if (jqueryTmplTemplateEngineInstance.jQueryTmplVersion > 0) moel@348: ko.setTemplateEngine(jqueryTmplTemplateEngineInstance); moel@348: moel@348: ko.exportSymbol('jqueryTmplTemplateEngine', ko.jqueryTmplTemplateEngine); moel@348: })(); moel@348: }); moel@348: })(window,document,navigator);