jquery - Javascript static variables and using in different pages -
i have jquery plugin in layout page header: <script src="@url.content("~/scripts/js/kendo.web.min.js")"></script> <script src="@url.content("~/scripts/app/jscommon.js")"></script> <script src="@url.content("~/scripts/app/layout.js")"></script> and layout.js: (function ($) { var layout = function (node, options) { this.node = node; this.options = $.extend({ url: "" }, options); $(this.node).find('.hbutton').bind('click', $.proxy(this.hbuttonclicked, this)); }; layout.prototype = { constructor: layout, _loadbackground: function () { debugger; //load second 'common.currenttarget' have been lost $(common.currenttarget).removeclass(); $(common.currenttarget).addclass(".hbutton_selected"); }, hbuttonclick...