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