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